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

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

Issue 1982043002: 👀 Cleanup DocumentMode migration helpers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/document/DocumentMigrationHelper.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/document/DocumentActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/document/DocumentActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/document/DocumentActivity.java
index 3529257536a34e15260206fefdee787f837f7c85..8faabd9cd842111f0d1a320c6fb0f28f4233b17e 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/document/DocumentActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/document/DocumentActivity.java
@@ -276,29 +276,6 @@ public class DocumentActivity extends ChromeActivity {
FirstRunSignInProcessor.start(this);
- if (!preferenceManager.hasAttemptedMigrationOnUpgrade()) {
- InitializationObserver observer = new InitializationObserver(
- ChromeApplication.getDocumentTabModelSelector().getModel(false)) {
- @Override
- protected void runImmediately() {
- DocumentMigrationHelper.migrateTabsToDocumentForUpgrade(DocumentActivity.this,
- DocumentMigrationHelper.FINALIZE_MODE_NO_ACTION);
- }
-
- @Override
- public boolean isSatisfied(int currentState) {
- return currentState == DocumentTabModelImpl.STATE_FULLY_LOADED;
- }
-
- @Override
- public boolean isCanceled() {
- return false;
- }
- };
-
- observer.runWhenReady();
- }
-
getWindow().setFeatureInt(Window.FEATURE_INDETERMINATE_PROGRESS,
Window.PROGRESS_VISIBILITY_OFF);
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/document/DocumentMigrationHelper.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698