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

Issue 2479683006: [Sync] Add support for identifying tabbed activites (Closed)

Created:
4 years, 1 month ago by Nicolas Zea
Modified:
4 years, 1 month ago
Reviewers:
Ted C
CC:
chromium-reviews, sync-reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Add support for identifying tabbed activites Tabbed activites are different from non-tabbed activities in that they get preserved on cold start start if no other tabbed activities are present, as it's assumed they just haven't been loaded. Other activities, like custom tabs, are not restored by sync. This patch adds the plumbing for detecting if the activity is tabbed, and persists that information within the sync window type. Windows are now either tabbed, popup, or custom tabs. BUG=639009 Committed: https://crrev.com/fb4ce10866412b0ecddb9e6b207fe643314f491f Cr-Commit-Position: refs/heads/master@{#431163}

Patch Set 1 #

Patch Set 2 : Fix tests #

Patch Set 3 : Rebase #

Patch Set 4 : Rename proto #

Total comments: 2

Patch Set 5 : Update plumbing #

Total comments: 2

Patch Set 6 : Address feedback and fix unit tests #

Patch Set 7 : Self review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -41 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/IncognitoTabModelImplCreator.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelImpl.java View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelJniBridge.java View 1 2 3 4 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelSelectorImpl.java View 1 2 3 4 4 chunks +9 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabWindowManager.java View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/document/DocumentTabModelImpl.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabTabPersistencePolicyTest.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/ContextMenuLoadUrlParamsTest.java View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/TabModelSelectorObserverTestBase.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/tabmodel/TabPersistentStoreTest.java View 1 2 3 4 5 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/synced_window_delegate_android.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/synced_window_delegate_android.cc View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/android/tab_model/tab_model.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/android/tab_model/tab_model.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/android/tab_model/tab_model_jni_bridge.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/android/tab_model/tab_model_jni_bridge.cc View 1 2 3 4 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/android/tab_model/tab_model_list_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/android/tab_model/tab_model_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M components/sync/protocol/proto_enum_conversions.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/sync/protocol/session_specifics.proto View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M components/sync_sessions/sessions_sync_manager.cc View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 38 (25 generated)
Nicolas Zea
Ted, PTAL. Checking whether the tab model is part of a tabbed activity or not ...
4 years, 1 month ago (2016-11-05 19:38:15 UTC) #14
Ted C
https://codereview.chromium.org/2479683006/diff/80001/components/sync/protocol/session_specifics.proto File components/sync/protocol/session_specifics.proto (right): https://codereview.chromium.org/2479683006/diff/80001/components/sync/protocol/session_specifics.proto#newcode44 components/sync/protocol/session_specifics.proto:44: enum BrowserType { I'll start with naive questioning here. ...
4 years, 1 month ago (2016-11-08 00:41:45 UTC) #15
Nicolas Zea
ping?
4 years, 1 month ago (2016-11-08 19:17:09 UTC) #16
Ted C
On 2016/11/08 19:17:09, Nicolas Zea wrote: > ping? pong? I replied yesterday.
4 years, 1 month ago (2016-11-08 19:18:23 UTC) #17
Nicolas Zea
On 2016/11/08 19:18:23, Ted C wrote: > On 2016/11/08 19:17:09, Nicolas Zea wrote: > > ...
4 years, 1 month ago (2016-11-08 19:26:18 UTC) #18
Nicolas Zea
PTAL https://codereview.chromium.org/2479683006/diff/80001/components/sync/protocol/session_specifics.proto File components/sync/protocol/session_specifics.proto (right): https://codereview.chromium.org/2479683006/diff/80001/components/sync/protocol/session_specifics.proto#newcode44 components/sync/protocol/session_specifics.proto:44: enum BrowserType { On 2016/11/08 00:41:45, Ted C ...
4 years, 1 month ago (2016-11-08 20:52:40 UTC) #19
Ted C
On 2016/11/08 20:52:40, Nicolas Zea wrote: > PTAL > > https://codereview.chromium.org/2479683006/diff/80001/components/sync/protocol/session_specifics.proto > File components/sync/protocol/session_specifics.proto (right): ...
4 years, 1 month ago (2016-11-08 22:55:58 UTC) #20
Nicolas Zea
PTAL. I opted for plumbing a bool down into SyncedWindowGetterAndroid.
4 years, 1 month ago (2016-11-10 00:21:00 UTC) #24
Ted C
lgtm w/ one suggestion -- and fixing the failing test compilation of course :-P https://codereview.chromium.org/2479683006/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabWindowManager.java ...
4 years, 1 month ago (2016-11-10 01:13:33 UTC) #28
Nicolas Zea
Done, thanks for the review! https://codereview.chromium.org/2479683006/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabWindowManager.java File chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabWindowManager.java (right): https://codereview.chromium.org/2479683006/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabWindowManager.java#newcode47 chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabWindowManager.java:47: * @param isTabbedActivity Whether ...
4 years, 1 month ago (2016-11-10 02:37:42 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2479683006/180001
4 years, 1 month ago (2016-11-10 02:38:09 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:180001)
4 years, 1 month ago (2016-11-10 03:21:18 UTC) #36
commit-bot: I haz the power
4 years, 1 month ago (2016-11-10 03:24:52 UTC) #38
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/fb4ce10866412b0ecddb9e6b207fe643314f491f
Cr-Commit-Position: refs/heads/master@{#431163}

Powered by Google App Engine
This is Rietveld 408576698