Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java

Issue 1847063003: Show the close all incognito notification for tabbed mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: findbugs Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
index c4e7109a1dde7c4349635c7d66d617c8fb5e2b8f..c283f5ae7fd1d2384f340f29da9e7a92db49d4cc 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java
@@ -97,12 +97,6 @@ public class ChromeLauncherActivity extends Activity
public static final String EXTRA_IS_ALLOWED_TO_RETURN_TO_PARENT =
"org.chromium.chrome.browser.document.IS_ALLOWED_TO_RETURN_TO_PARENT";
- /**
- * Action fired when the user selects the "Close all incognito tabs" notification.
- */
- static final String ACTION_CLOSE_ALL_INCOGNITO =
- "com.google.android.apps.chrome.document.CLOSE_ALL_INCOGNITO";
-
private static final String TAG = "document_CLActivity";
/** New instance should be launched in the foreground. */
@@ -238,13 +232,6 @@ public class ChromeLauncherActivity extends Activity
ApiCompatibilityUtils.finishAndRemoveTask(this);
return;
} else {
- // Check if we're just closing all of the Incognito tabs.
- if (TextUtils.equals(intent.getAction(), ACTION_CLOSE_ALL_INCOGNITO)) {
- ChromeApplication.getDocumentTabModelSelector().getModel(true).closeAllTabs();
- ApiCompatibilityUtils.finishAndRemoveTask(this);
- return;
- }
-
// Launch a DocumentActivity to handle the Intent.
handleDocumentActivityIntent();
}
@@ -768,18 +755,6 @@ public class ChromeLauncherActivity extends Activity
return true;
}
- /**
- * Get an intent that will close all incognito tabs through {@link ChromeLauncherActivity}.
- * @param context The context to use for creating the {@link PendingIntent}.
- * @return {@link PendingIntent} to use for closing all incognito tabs.
- */
- @TargetApi(Build.VERSION_CODES.LOLLIPOP)
- public static PendingIntent getRemoveAllIncognitoTabsIntent(Context context) {
- Intent intent = new Intent(
- ACTION_CLOSE_ALL_INCOGNITO, null, context, ChromeLauncherActivity.class);
- return PendingIntent.getActivity(context, 0, intent, 0);
- }
-
static String getDocumentClassName(boolean isIncognito) {
return isIncognito ? IncognitoDocumentActivity.class.getName() :
DocumentActivity.class.getName();

Powered by Google App Engine
This is Rietveld 408576698