Merge "Backup bookmarks when a new bookmark is added."
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index 52a3125..d4a016d 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -1693,6 +1693,9 @@
     @Override
     public void onCreateContextMenu(ContextMenu menu, View v,
             ContextMenuInfo menuInfo) {
+        if (v instanceof TitleBar) {
+            return;
+        }
         WebView webview = (WebView) v;
         WebView.HitTestResult result = webview.getHitTestResult();
         if (result == null) {
@@ -2458,7 +2461,7 @@
      * an {@link Intent} to launch the Activity chooser.
      * @param c Context used to launch a new Activity.
      * @param title Title of the page.  Stored in the Intent with
-     *          {@link Browser#EXTRA_SHARE_TITLE}
+     *          {@link Intent#EXTRA_SUBJECT}
      * @param url URL of the page.  Stored in the Intent with
      *          {@link Intent#EXTRA_TEXT}
      * @param favicon Bitmap of the favicon for the page.  Stored in the Intent
@@ -2471,7 +2474,7 @@
         Intent send = new Intent(Intent.ACTION_SEND);
         send.setType("text/plain");
         send.putExtra(Intent.EXTRA_TEXT, url);
-        send.putExtra(Browser.EXTRA_SHARE_TITLE, title);
+        send.putExtra(Intent.EXTRA_SUBJECT, title);
         send.putExtra(Browser.EXTRA_SHARE_FAVICON, favicon);
         send.putExtra(Browser.EXTRA_SHARE_SCREENSHOT, screenshot);
         try {
diff --git a/src/com/android/browser/TitleBar.java b/src/com/android/browser/TitleBar.java
index 15b1d44..98667c3 100644
--- a/src/com/android/browser/TitleBar.java
+++ b/src/com/android/browser/TitleBar.java
@@ -141,9 +141,10 @@
     };
 
     @Override
-    protected void onCreateContextMenu(ContextMenu menu) {
+    public void createContextMenu(ContextMenu menu) {
         MenuInflater inflater = mBrowserActivity.getMenuInflater();
         inflater.inflate(R.menu.title_context, menu);
+        mBrowserActivity.onCreateContextMenu(menu, this, null);
     }
 
     @Override