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

Issue 1176943002: Start unifying document-mode and tabbed-mode tab creation (Closed)

Created:
5 years, 6 months ago by gone
Modified:
5 years, 6 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Start unifying document-mode and tabbed-mode tab creation * TabDelegate, which is used to create tabs in document-mode now subclasses the TabCreator class that tabbed-mode uses. * Being consolidating methods for creating tabs in the TabDelegate class. - Various methods for opening new Tabs under specific conditions (e.g. for devtools, or for opening an NTP) in document mode are cleaned up. - DocumentActivity's SingleTabModelSelector now defers to the DocumentTabModelSelector when opening new Tabs. - DocumentTabModelImpl uses generic methods in TabDelegate to create Tabs as similarly as possible to the TabModelImpl. In contrast to how TabModelImpl works with ChromeTabbedActivity, the DocumentTabModel has no specific Activity to grab TabCreators from. Instead, the DocumentTabModelSelector becomes a TabCreatorManager and passes out its TabCreators when necessary. * TabCreator.createFrozenTab now returns a Tab to line up with how document mode creates frozen tabs. * DocumentTabChromeWebContentsDelegateAndroidImpl no longer stores a mapping between the WebContents' URL and its native pointer. Instead, the URL is grabbed via JNI before the new Activity is launched. BUG=451453 Committed: https://crrev.com/05c376f220bbffbc20ba6f5d8f1b42091467f12a Cr-Commit-Position: refs/heads/master@{#334098}

Patch Set 1 #

Patch Set 2 : Supplement unit tests #

Total comments: 4

Patch Set 3 : Comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+333 lines, -166 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabCreatorManager.java View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImpl.java View 1 2 9 chunks +29 lines, -14 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelSelector.java View 6 chunks +19 lines, -7 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/TabDelegate.java View 1 chunk +12 lines, -34 lines 0 comments Download
M chrome/android/java_staging/src/org/chromium/chrome/browser/ChromeMobileApplication.java View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java_staging/src/org/chromium/chrome/browser/document/DocumentActivity.java View 2 chunks +5 lines, -22 lines 0 comments Download
M chrome/android/java_staging/src/org/chromium/chrome/browser/document/DocumentMigrationHelper.java View 3 chunks +12 lines, -1 line 0 comments Download
M chrome/android/java_staging/src/org/chromium/chrome/browser/document/DocumentTab.java View 1 3 chunks +3 lines, -24 lines 0 comments Download
M chrome/android/java_staging/src/org/chromium/chrome/browser/document/TabDelegateImpl.java View 1 2 2 chunks +86 lines, -24 lines 0 comments Download
M chrome/android/java_staging/src/org/chromium/chrome/browser/tabmodel/ChromeTabCreator.java View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTest.java View 1 10 chunks +112 lines, -17 lines 0 comments Download
M chrome/android/javatests_shell/src/org/chromium/chrome/browser/tabmodel/TabPersistentStoreTest.java View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/android/javatests_shell/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImplTest.java View 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/android/javatests_shell/src/org/chromium/chrome/browser/tabmodel/document/OffTheRecordDocumentTabModelTest.java View 4 chunks +5 lines, -5 lines 0 comments Download
A chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/tabmodel/document/MockDocumentTabCreatorManager.java View 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/tabmodel/document/MockTabDelegate.java View 2 chunks +21 lines, -9 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
gone
This change is coming down the pipe, FYI. I'm trying to figure out how to ...
5 years, 6 months ago (2015-06-10 18:17:15 UTC) #2
Ted C
lgtm https://chromiumcodereview.appspot.com/1176943002/diff/20001/chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTest.java (right): https://chromiumcodereview.appspot.com/1176943002/diff/20001/chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTest.java#newcode882 chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTest.java:882: } catch (Exception e) { findbugs will probably ...
5 years, 6 months ago (2015-06-11 19:25:58 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176943002/20001
5 years, 6 months ago (2015-06-11 20:27:34 UTC) #5
gone
Going to add follow up unit tests once this and https://chromiumcodereview.appspot.com/1178223003/ both land. https://chromiumcodereview.appspot.com/1176943002/diff/20001/chrome/android/javatests/src/org/chromium/chrome/browser/document/DocumentModeTest.java File ...
5 years, 6 months ago (2015-06-11 20:27:41 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 6 months ago (2015-06-11 21:44:48 UTC) #8
Maria
lgtm https://chromiumcodereview.appspot.com/1176943002/diff/20001/chrome/android/java_staging/src/org/chromium/chrome/browser/document/TabDelegateImpl.java File chrome/android/java_staging/src/org/chromium/chrome/browser/document/TabDelegateImpl.java (right): https://chromiumcodereview.appspot.com/1176943002/diff/20001/chrome/android/java_staging/src/org/chromium/chrome/browser/document/TabDelegateImpl.java#newcode71 chrome/android/java_staging/src/org/chromium/chrome/browser/document/TabDelegateImpl.java:71: data.webContentsPaused = startedBy != DocumentMetricIds.STARTED_BY_CHROME_HOME_RECENT_TABS; this is a ...
5 years, 6 months ago (2015-06-11 23:08:50 UTC) #9
gone
https://chromiumcodereview.appspot.com/1176943002/diff/20001/chrome/android/java_staging/src/org/chromium/chrome/browser/document/TabDelegateImpl.java File chrome/android/java_staging/src/org/chromium/chrome/browser/document/TabDelegateImpl.java (right): https://chromiumcodereview.appspot.com/1176943002/diff/20001/chrome/android/java_staging/src/org/chromium/chrome/browser/document/TabDelegateImpl.java#newcode71 chrome/android/java_staging/src/org/chromium/chrome/browser/document/TabDelegateImpl.java:71: data.webContentsPaused = startedBy != DocumentMetricIds.STARTED_BY_CHROME_HOME_RECENT_TABS; On 2015/06/11 23:08:49, Maria ...
5 years, 6 months ago (2015-06-12 00:12:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176943002/40001
5 years, 6 months ago (2015-06-12 00:13:18 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 6 months ago (2015-06-12 01:05:31 UTC) #14
commit-bot: I haz the power
5 years, 6 months ago (2015-06-12 01:06:15 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/05c376f220bbffbc20ba6f5d8f1b42091467f12a
Cr-Commit-Position: refs/heads/master@{#334098}

Powered by Google App Engine
This is Rietveld 408576698