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

Issue 15499005: Add a new SyncedTabDelegate for Android. (Closed)

Created:
7 years, 7 months ago by shashi
Modified:
7 years, 6 months ago
CC:
chromium-reviews, marja+watch_chromium.org, haitaol1, akalin, tim (not reviewing), Raghu Simha
Visibility:
Public.

Description

Add a new SyncedTabDelegate for Android. Android can have tabs without any web contents. Tab association logic assumes that all tabs have web contents. This prevents Android from cleanly doing session reassociation. This change adds a SyncedTabDelegate which does not depend on existence of web contents. It also ensures that SessionID for a tab does not change when web contents get attached to the tab. BUG=139670, 125549 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203071

Patch Set 1 #

Patch Set 2 : #

Total comments: 15

Patch Set 3 : apply feedback + rebase. #

Patch Set 4 : add a ResetWebContents to SyncedTabDelegateAndroid. #

Total comments: 2

Patch Set 5 : Add additional constructor. #

Total comments: 1

Patch Set 6 : fix nit. #

Total comments: 10

Patch Set 7 : apply nits. #

Patch Set 8 : reorder params. #

Patch Set 9 : rebase #

Patch Set 10 : Fix prerendering. #

Patch Set 11 : Fix pre-rendering + revert changes to SessionTabHelper. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -37 lines) Patch
M chrome/browser/android/tab_android.h View 1 2 3 4 5 6 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/android/tab_android.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 2 comments Download
M chrome/browser/sync/glue/session_model_associator_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/glue/synced_tab_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/browser/sync/glue/synced_tab_delegate_android.h View 1 2 3 4 5 6 7 8 3 chunks +25 lines, -14 lines 0 comments Download
A chrome/browser/sync/glue/synced_tab_delegate_android.cc View 1 2 3 4 5 6 7 8 1 chunk +106 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/synced_window_delegate_android.cc View 2 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/android/tab_model/tab_model.h View 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/android/tab_model/tab_model_unittest.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
shashi
Full overview CL: https://chromiumcodereview.appspot.com/15055003/ chrome/browser/sync, chrome/browser/ui/sync: zea chrome/browser/android, chrome/browser/ui/android: nyquist, yfriedman chrome/browser/sessions, chrome/chrome.gypi:sky
7 years, 7 months ago (2013-05-21 01:32:14 UTC) #1
sky
https://chromiumcodereview.appspot.com/15499005/diff/10001/chrome/browser/sessions/session_tab_helper.h File chrome/browser/sessions/session_tab_helper.h (right): https://chromiumcodereview.appspot.com/15499005/diff/10001/chrome/browser/sessions/session_tab_helper.h#newcode22 chrome/browser/sessions/session_tab_helper.h:22: void SetSessionId(const SessionID& id); Why do you need to ...
7 years, 7 months ago (2013-05-21 04:53:01 UTC) #2
shashi
https://chromiumcodereview.appspot.com/15499005/diff/10001/chrome/browser/sessions/session_tab_helper.h File chrome/browser/sessions/session_tab_helper.h (right): https://chromiumcodereview.appspot.com/15499005/diff/10001/chrome/browser/sessions/session_tab_helper.h#newcode22 chrome/browser/sessions/session_tab_helper.h:22: void SetSessionId(const SessionID& id); Sorry my intent is not ...
7 years, 7 months ago (2013-05-21 05:16:34 UTC) #3
sky
https://chromiumcodereview.appspot.com/15499005/diff/10001/chrome/browser/sessions/session_tab_helper.h File chrome/browser/sessions/session_tab_helper.h (right): https://chromiumcodereview.appspot.com/15499005/diff/10001/chrome/browser/sessions/session_tab_helper.h#newcode22 chrome/browser/sessions/session_tab_helper.h:22: void SetSessionId(const SessionID& id); On 2013/05/21 05:16:35, shashi wrote: ...
7 years, 7 months ago (2013-05-21 15:00:44 UTC) #4
shashi
https://chromiumcodereview.appspot.com/15499005/diff/10001/chrome/browser/sessions/session_tab_helper.h File chrome/browser/sessions/session_tab_helper.h (right): https://chromiumcodereview.appspot.com/15499005/diff/10001/chrome/browser/sessions/session_tab_helper.h#newcode22 chrome/browser/sessions/session_tab_helper.h:22: void SetSessionId(const SessionID& id); The id I want to ...
7 years, 7 months ago (2013-05-21 16:01:13 UTC) #5
sky
Then I'm fine with the factory you mentioned. On Tue, May 21, 2013 at 9:01 ...
7 years, 7 months ago (2013-05-21 16:25:56 UTC) #6
Yaron
https://codereview.chromium.org/15499005/diff/10001/chrome/browser/sync/glue/session_model_associator.cc File chrome/browser/sync/glue/session_model_associator.cc (right): https://codereview.chromium.org/15499005/diff/10001/chrome/browser/sync/glue/session_model_associator.cc#newcode243 chrome/browser/sync/glue/session_model_associator.cc:243: if (tab && tab->HasWebContents() && !AssociateTab(*tab, error)) { I ...
7 years, 7 months ago (2013-05-21 18:32:07 UTC) #7
shashi
https://chromiumcodereview.appspot.com/15499005/diff/10001/chrome/browser/sessions/session_tab_helper.h File chrome/browser/sessions/session_tab_helper.h (right): https://chromiumcodereview.appspot.com/15499005/diff/10001/chrome/browser/sessions/session_tab_helper.h#newcode22 chrome/browser/sessions/session_tab_helper.h:22: void SetSessionId(const SessionID& id); On 2013/05/21 16:01:13, shashi wrote: ...
7 years, 7 months ago (2013-05-21 23:11:21 UTC) #8
sky
https://chromiumcodereview.appspot.com/15499005/diff/54001/chrome/browser/sessions/session_tab_helper.cc File chrome/browser/sessions/session_tab_helper.cc (right): https://chromiumcodereview.appspot.com/15499005/diff/54001/chrome/browser/sessions/session_tab_helper.cc#newcode27 chrome/browser/sessions/session_tab_helper.cc:27: FromWebContents(contents)->session_id_ = id; Could you add a new constructor ...
7 years, 7 months ago (2013-05-21 23:49:44 UTC) #9
shashi
https://chromiumcodereview.appspot.com/15499005/diff/54001/chrome/browser/sessions/session_tab_helper.cc File chrome/browser/sessions/session_tab_helper.cc (right): https://chromiumcodereview.appspot.com/15499005/diff/54001/chrome/browser/sessions/session_tab_helper.cc#newcode27 chrome/browser/sessions/session_tab_helper.cc:27: FromWebContents(contents)->session_id_ = id; On 2013/05/21 23:49:44, sky wrote: > ...
7 years, 7 months ago (2013-05-22 00:34:32 UTC) #10
sky
LGTM https://chromiumcodereview.appspot.com/15499005/diff/66001/chrome/browser/sessions/session_tab_helper.cc File chrome/browser/sessions/session_tab_helper.cc (right): https://chromiumcodereview.appspot.com/15499005/diff/66001/chrome/browser/sessions/session_tab_helper.cc#newcode24 chrome/browser/sessions/session_tab_helper.cc:24: : content::WebContentsObserver(contents), session_id_(id) {} nit: since the constructor ...
7 years, 7 months ago (2013-05-22 00:46:36 UTC) #11
Nicolas Zea
mainly nits https://chromiumcodereview.appspot.com/15499005/diff/76001/chrome/browser/android/tab_android.h File chrome/browser/android/tab_android.h (right): https://chromiumcodereview.appspot.com/15499005/diff/76001/chrome/browser/android/tab_android.h#newcode81 chrome/browser/android/tab_android.h:81: jobject content_view); nit: newline after https://chromiumcodereview.appspot.com/15499005/diff/76001/chrome/browser/sessions/session_tab_helper.h File ...
7 years, 7 months ago (2013-05-22 20:36:37 UTC) #12
shashi
https://chromiumcodereview.appspot.com/15499005/diff/76001/chrome/browser/android/tab_android.h File chrome/browser/android/tab_android.h (right): https://chromiumcodereview.appspot.com/15499005/diff/76001/chrome/browser/android/tab_android.h#newcode81 chrome/browser/android/tab_android.h:81: jobject content_view); On 2013/05/22 20:36:37, Nicolas Zea wrote: > ...
7 years, 7 months ago (2013-05-22 21:18:59 UTC) #13
Nicolas Zea
https://chromiumcodereview.appspot.com/15499005/diff/76001/chrome/browser/sessions/session_tab_helper.h File chrome/browser/sessions/session_tab_helper.h (right): https://chromiumcodereview.appspot.com/15499005/diff/76001/chrome/browser/sessions/session_tab_helper.h#newcode21 chrome/browser/sessions/session_tab_helper.h:21: static void CreateForWebContentsWithId(content::WebContents* contents, On 2013/05/22 21:18:59, shashi wrote: ...
7 years, 7 months ago (2013-05-22 22:06:06 UTC) #14
shashi
https://chromiumcodereview.appspot.com/15499005/diff/76001/chrome/browser/sessions/session_tab_helper.h File chrome/browser/sessions/session_tab_helper.h (right): https://chromiumcodereview.appspot.com/15499005/diff/76001/chrome/browser/sessions/session_tab_helper.h#newcode21 chrome/browser/sessions/session_tab_helper.h:21: static void CreateForWebContentsWithId(content::WebContents* contents, On 2013/05/22 22:06:06, Nicolas Zea ...
7 years, 7 months ago (2013-05-22 22:30:47 UTC) #15
Nicolas Zea
lgtm!
7 years, 7 months ago (2013-05-22 22:33:43 UTC) #16
Yaron
lgtm
7 years, 7 months ago (2013-05-23 18:59:28 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shashishekhar@chromium.org/15499005/97001
7 years, 7 months ago (2013-05-24 00:19:04 UTC) #18
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) chrome_frame_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=153371
7 years, 7 months ago (2013-05-24 06:28:23 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shashishekhar@chromium.org/15499005/97001
7 years, 6 months ago (2013-05-28 16:04:05 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shashishekhar@chromium.org/15499005/145001
7 years, 6 months ago (2013-05-28 19:17:06 UTC) #21
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=5297
7 years, 6 months ago (2013-05-28 19:27:35 UTC) #22
shashi
yfriedman: based on feedback on downstream patch, I have added a small change for fixing ...
7 years, 6 months ago (2013-05-28 22:55:06 UTC) #23
shashi
I have to revert my changes to SessionTabHelper, since it will break prerendering. Now tab ...
7 years, 6 months ago (2013-05-29 19:21:47 UTC) #24
Yaron
lgtm assuming my comment isn't an issue https://chromiumcodereview.appspot.com/15499005/diff/169001/chrome/browser/sync/glue/session_model_associator.cc File chrome/browser/sync/glue/session_model_associator.cc (right): https://chromiumcodereview.appspot.com/15499005/diff/169001/chrome/browser/sync/glue/session_model_associator.cc#newcode226 chrome/browser/sync/glue/session_model_associator.cc:226: // If ...
7 years, 6 months ago (2013-05-30 00:47:22 UTC) #25
shashi
https://chromiumcodereview.appspot.com/15499005/diff/169001/chrome/browser/sync/glue/session_model_associator.cc File chrome/browser/sync/glue/session_model_associator.cc (right): https://chromiumcodereview.appspot.com/15499005/diff/169001/chrome/browser/sync/glue/session_model_associator.cc#newcode226 chrome/browser/sync/glue/session_model_associator.cc:226: // If the tab is valid, it would have ...
7 years, 6 months ago (2013-05-30 00:56:13 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shashishekhar@chromium.org/15499005/169001
7 years, 6 months ago (2013-05-30 00:56:35 UTC) #27
commit-bot: I haz the power
7 years, 6 months ago (2013-05-30 04:51:07 UTC) #28
Message was sent while issue was closed.
Change committed as 203071

Powered by Google App Engine
This is Rietveld 408576698