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

Issue 2011433003: [Hera] Excise a bunch of document mode code (Closed)

Created:
4 years, 7 months ago by gone
Modified:
4 years, 7 months ago
Reviewers:
Ted C, Ilya Sherman
CC:
chromium-reviews, zine-eng+reviews_google.com, Peter Wen
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Hera] Excise a bunch of document mode code Deprecated document mode code is hindering efforts to refactor other classes. Excise as much DocumentActivity related code as possible in one swoop so that it's easy to find later, if for some reason it's needed. * Force all users entering DocumentActivity through the migration pathway without checking if they're in document mode. There should be no valid way to trigger a DocumentActivity, short of being inside Recents when migration is completed and reselecting an old Document tab. * Delete practically everything inside the DocumentActivity class to make it easier to determine dead dependencies in classes that are being refactored. * Delete all DocumentActivity-launching related functions from ChromeLauncherActivity, and things that spiral out from there. * Delete most of the document mode tests. * Deletes a bunch of DocumentTabModel related code. Migration pathways still seem to be intact. BUG=582539 Committed: https://crrev.com/35eb7ce0cd77f420076b796bb50a96c4958992ff Cr-Commit-Position: refs/heads/master@{#396062}

Patch Set 1 #

Patch Set 2 : VisibleForTesting #

Patch Set 3 : Nuke the DocumentTabModel too #

Patch Set 4 : Findbugs #

Total comments: 6

Patch Set 5 : Deprecate histograms, clean up another unused one. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -6064 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java View 1 2 3 4 13 chunks +17 lines, -456 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/document/DocumentActivity.java View 3 chunks +18 lines, -806 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/document/DocumentTabDelegateFactory.java View 1 chunk +0 lines, -44 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/document/DocumentUma.java View 1 chunk +0 lines, -98 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/document/IncognitoDocumentActivity.java View 1 chunk +1 line, -91 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/ntp/DocumentRecentTabsManager.java View 1 chunk +0 lines, -227 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/NativePageFactory.java View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java View 1 2 6 chunks +7 lines, -42 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/AsyncDocumentLauncher.java View 1 chunk +0 lines, -136 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModel.java View 1 2 2 chunks +0 lines, -135 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImpl.java View 1 2 3 10 chunks +8 lines, -597 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelSelector.java View 1 2 3 7 chunks +4 lines, -68 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/OffTheRecordDocumentTabModel.java View 1 2 2 chunks +0 lines, -98 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/upgrade/UpgradeActivity.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java_sources.gni View 1 2 8 chunks +0 lines, -15 lines 0 comments Download
D chrome/android/javatests/src/org/chromium/chrome/browser/BindingManagerInDocumentModeIntegrationTest.java View 1 chunk +0 lines, -336 lines 0 comments Download
D chrome/android/javatests/src/org/chromium/chrome/browser/ChromeTabbedActivityLollipopAndAboveTest.java View 1 chunk +0 lines, -86 lines 0 comments Download
D chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeLowEndTest.java View 1 chunk +0 lines, -124 lines 0 comments Download
D chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeReferrerTest.java View 1 chunk +0 lines, -259 lines 0 comments Download
D chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTest.java View 1 chunk +0 lines, -761 lines 0 comments Download
D chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTestBase.java View 1 chunk +0 lines, -353 lines 0 comments Download
D chrome/android/javatests/src/org/chromium/chrome/browser/hardware_acceleration/DocumentActivityHWATest.java View 1 chunk +0 lines, -51 lines 0 comments Download
D chrome/android/javatests/src/org/chromium/chrome/browser/ntp/DocumentModeRecentlyClosedTest.java View 1 chunk +0 lines, -269 lines 0 comments Download
D chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/document/AsyncDocumentLauncherTest.java View 1 chunk +0 lines, -136 lines 0 comments Download
D chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImplTest.java View 1 2 1 chunk +0 lines, -458 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/document/MockDocumentTabModel.java View 1 2 2 chunks +0 lines, -87 lines 0 comments Download
D chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/document/OffTheRecordDocumentTabModelTest.java View 1 2 1 chunk +0 lines, -224 lines 0 comments Download
M chrome/test/android/BUILD.gn View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java View 2 chunks +7 lines, -36 lines 0 comments Download
D chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/tabmodel/document/TestInitializationObserver.java View 1 2 1 chunk +0 lines, -60 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
gone
Hacking off the easier bits first. Should make it easier to chop up the DocumentTabModel ...
4 years, 7 months ago (2016-05-25 01:27:11 UTC) #2
gone
Hmm. DocumentTabModelImpl tests are failing. Guess I should excise those in this patch, too, then.
4 years, 7 months ago (2016-05-25 16:07:21 UTC) #3
gone
Er, looks like a @VisibleForTesting problem. Just going to add that annotation where necessary and ...
4 years, 7 months ago (2016-05-25 16:23:43 UTC) #4
gone
Ended up combining the follow up CL to nullify the DocumentTabModel in this one as ...
4 years, 7 months ago (2016-05-25 17:22:41 UTC) #6
gone
+Peter as a heads up.
4 years, 7 months ago (2016-05-25 18:07:20 UTC) #7
Ted C
Should we be marking metrics as deprecated as well? Looks like we removed some stuff ...
4 years, 7 months ago (2016-05-25 18:26:59 UTC) #8
gone
You cool with deprecating the histograms in a follow up? https://chromiumcodereview.appspot.com/2011433003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java File chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java (right): https://chromiumcodereview.appspot.com/2011433003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java#newcode206 ...
4 years, 7 months ago (2016-05-25 20:22:20 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2011433003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2011433003/60001
4 years, 7 months ago (2016-05-25 20:32:17 UTC) #11
commit-bot: I haz the power
Dry run: None
4 years, 7 months ago (2016-05-25 20:58:55 UTC) #12
gone
+isherman for histograms deprecation
4 years, 7 months ago (2016-05-25 21:01:26 UTC) #14
Ted C
lgtm
4 years, 7 months ago (2016-05-25 22:29:17 UTC) #15
Ilya Sherman
histograms.xml lgtm
4 years, 7 months ago (2016-05-25 22:32:33 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2011433003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2011433003/80001
4 years, 7 months ago (2016-05-25 22:37:09 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-26 01:00:20 UTC) #20
commit-bot: I haz the power
4 years, 7 months ago (2016-05-26 01:01:34 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/35eb7ce0cd77f420076b796bb50a96c4958992ff
Cr-Commit-Position: refs/heads/master@{#396062}

Powered by Google App Engine
This is Rietveld 408576698