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

Issue 1817083003: Add pathway to auto-migrate users when Chrome launches (Closed)

Created:
4 years, 9 months ago by gone
Modified:
4 years, 8 months ago
Reviewers:
Ted C, Yusuf
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@assassin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add pathway to auto-migrate users when Chrome launches * For now, a command line flag is required to trigger this pathway: --enable-forced-migration * UpgradeActivity kicks off the DocumentModeAssassin and waits for it to finish. This Activity can only be launched via other ChromeActivities, and can be passed an Intent to refire when the migration finishes. * A MAIN Intent or Intent to start a new DocumentActivity that goes through ChromeLauncherActivity will force users through UgpradeActivity, instead. This causes document mode to be flipped off, and anything going down the ChromeLauncherActivity pathway again should no longer trigger migration. This pathway catches new tabs created via VIEW Intents, MAIN Intents, CCT Intents, and (sometimes) WebappActivity Intents. * AsyncInitializationActivity watches for the need for the migration pathway to be triggered when a ChromeActivity subclass starts up. This pathway catches Intents that skip ChromeLauncherActivity, which includes ChromeTabbedActivity, DocumentActivity, CustomTabActivity, and WebappActivity. These can be launched directly by selecting them from Android Recents, or by firing Intents to bring them back specifically. * The look of this Activity is a stand-in for when we get redlines. The animation is also kind of janky, but I'm aiming for functionality at this point. * TabDelegate is no longer allowed to create new DocumentActivities, instead deferring down the ChromeLauncherActivity pathway. This catches cases with push notifications triggering a tab to be created when they're clicked. * The preference to enable document mode is hidden once the user has migrated. BUG=582539 Committed: https://crrev.com/de49c2d22f6c873aac94696ef004ecf8d8dd6b52 Cr-Commit-Position: refs/heads/master@{#383406}

Patch Set 1 #

Patch Set 2 : Adding finish #

Patch Set 3 : Rebasing #

Patch Set 4 : Return to fix incognito case #

Total comments: 16

Patch Set 5 : Redid the world #

Total comments: 4

Patch Set 6 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+348 lines, -44 lines) Patch
M chrome/android/java/AndroidManifest.xml View 1 2 3 4 4 chunks +20 lines, -0 lines 0 comments Download
A chrome/android/java/res/layout/upgrade_activity.xml View 1 chunk +52 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeSwitches.java View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/UpgradeActivity.java View 1 2 3 4 5 1 chunk +136 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java View 1 2 3 4 4 chunks +19 lines, -9 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/document/DocumentActivity.java View 1 chunk +23 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitializationActivity.java View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/MainPreferences.java View 2 chunks +10 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/DocumentModeAssassin.java View 1 2 3 4 14 chunks +53 lines, -28 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/TabDelegate.java View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/DocumentModeAssassinTest.java View 1 2 3 4 3 chunks +5 lines, -4 lines 0 comments Download
M ui/android/java/strings/android_ui_strings.grd View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
gone
Going to keep on truckin'. This one depends on the DocumentModeAssassin CL.
4 years, 9 months ago (2016-03-21 23:33:56 UTC) #2
Ted C
https://codereview.chromium.org/1817083003/diff/60001/chrome/android/java/AndroidManifest.xml File chrome/android/java/AndroidManifest.xml (right): https://codereview.chromium.org/1817083003/diff/60001/chrome/android/java/AndroidManifest.xml#newcode206 chrome/android/java/AndroidManifest.xml:206: <activity android:name="org.chromium.chrome.browser.document.UpgradeActivity" I would use a more verbose name ...
4 years, 8 months ago (2016-03-25 17:38:06 UTC) #4
gone
Testing with Activity destruction exposed a StrictMode violation I wasn't expecting, so that ended up ...
4 years, 8 months ago (2016-03-25 22:05:42 UTC) #5
Ted C
lgtm https://chromiumcodereview.appspot.com/1817083003/diff/60001/chrome/android/java/res/layout/upgrade_activity.xml File chrome/android/java/res/layout/upgrade_activity.xml (right): https://chromiumcodereview.appspot.com/1817083003/diff/60001/chrome/android/java/res/layout/upgrade_activity.xml#newcode10 chrome/android/java/res/layout/upgrade_activity.xml:10: android:id="@+id/webapp_splash_screen_layout" On 2016/03/25 22:05:41, dfalcantara wrote: > On ...
4 years, 8 months ago (2016-03-25 22:15:31 UTC) #6
Yusuf
lgtm https://chromiumcodereview.appspot.com/1817083003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/UpgradeActivity.java File chrome/android/java/src/org/chromium/chrome/browser/UpgradeActivity.java (right): https://chromiumcodereview.appspot.com/1817083003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/UpgradeActivity.java#newcode97 chrome/android/java/src/org/chromium/chrome/browser/UpgradeActivity.java:97: private static Intent cacheIntentToFireAfterUpgrade(Intent activityIntent) { This doesn't ...
4 years, 8 months ago (2016-03-25 22:19:55 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1817083003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817083003/100001
4 years, 8 months ago (2016-03-25 22:27:11 UTC) #10
gone
https://chromiumcodereview.appspot.com/1817083003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/UpgradeActivity.java File chrome/android/java/src/org/chromium/chrome/browser/UpgradeActivity.java (right): https://chromiumcodereview.appspot.com/1817083003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/UpgradeActivity.java#newcode97 chrome/android/java/src/org/chromium/chrome/browser/UpgradeActivity.java:97: private static Intent cacheIntentToFireAfterUpgrade(Intent activityIntent) { On 2016/03/25 22:19:55, ...
4 years, 8 months ago (2016-03-25 22:51:31 UTC) #11
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-03-25 23:37:33 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-03-25 23:40:14 UTC) #15
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/de49c2d22f6c873aac94696ef004ecf8d8dd6b52
Cr-Commit-Position: refs/heads/master@{#383406}

Powered by Google App Engine
This is Rietveld 408576698