Index: chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java |
diff --git a/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java b/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java |
index 05608d38f43db51ec3dcf74ff7cebb62822afee0..0a5e8c5ec38cfde9e7679b5a75ca342d6f0473f9 100644 |
--- a/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java |
+++ b/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java |
@@ -284,6 +284,7 @@ public class ChromeShellActivity extends Activity implements AppMenuPropertiesDe |
return super.onKeyDown(keyCode, event); |
} |
+ @SuppressWarnings("deprecation") |
@Override |
public boolean onOptionsItemSelected(MenuItem item) { |
ChromeShellTab activeTab = getActiveTab(); |
@@ -322,7 +323,8 @@ public class ChromeShellActivity extends Activity implements AppMenuPropertiesDe |
case R.id.share_menu_id: |
case R.id.direct_share_menu_id: |
ShareHelper.share(item.getItemId() == R.id.direct_share_menu_id, this, |
- activeTab.getTitle(), activeTab.getUrl(), null); |
+ activeTab.getTitle(), activeTab.getUrl(), null, |
+ Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); |
return true; |
default: |
return super.onOptionsItemSelected(item); |