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

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

Issue 2644573003: Initial version of the split CBD dialog (Closed)
Patch Set: Created 3 years, 11 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/ChromeApplication.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java
index ad559add4bc29ff0fe617161d44bb7a7abf0e68b..41aef801d4be9a5cff5ae8f408b5aca1aa91ab2e 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java
@@ -50,6 +50,7 @@ import org.chromium.chrome.browser.preferences.PreferencesLauncher;
import org.chromium.chrome.browser.preferences.autofill.AutofillPreferences;
import org.chromium.chrome.browser.preferences.password.SavePasswordsPreferences;
import org.chromium.chrome.browser.preferences.privacy.ClearBrowsingDataPreferences;
+import org.chromium.chrome.browser.preferences.privacy.ClearBrowsingDataTabsFragment;
import org.chromium.chrome.browser.rlz.RevenueStats;
import org.chromium.chrome.browser.services.AndroidEduOwnerCheckCallback;
import org.chromium.chrome.browser.signin.GoogleActivityController;
@@ -194,8 +195,11 @@ public class ChromeApplication extends ContentApplication {
"Attempting to open clear browsing data for a tab without a valid activity");
return;
}
- Intent intent = PreferencesLauncher.createIntentForSettingsPage(activity,
- ClearBrowsingDataPreferences.class.getName());
+
+ String fragmentName = ClearBrowsingDataTabsFragment.isFeatureEnabled()
+ ? ClearBrowsingDataTabsFragment.class.getName()
+ : ClearBrowsingDataPreferences.class.getName();
+ Intent intent = PreferencesLauncher.createIntentForSettingsPage(activity, fragmentName);
activity.startActivity(intent);
}

Powered by Google App Engine
This is Rietveld 408576698