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

Issue 10701030: Refactor SyncedWindowDelegateAndroid into TabModel (Closed)

Created:
8 years, 5 months ago by David Trainor- moved to gerrit
Modified:
8 years, 4 months ago
CC:
chromium-reviews, MAD, jar (doing other things), Raghu Simha, ncarter (slow), marja+watch_chromium.org, Ilya Sherman, tim (not reviewing), akalin
Visibility:
Public.

Description

Refactor SyncedWindowDelegateAndroid into TabModel Pull out a generic TabModel class for Android. It owns SyncedWindowDelegate like Browser owns a corresponding instance. This will allow us to eventually implement TabModelAndroid. We no longer need to keep SyncedWindowDelegateRegistry, as we were using that in non-sync related places to reach the TabModel methods. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148798

Patch Set 1 #

Patch Set 2 : Made some changes from a downstream review #

Total comments: 29

Patch Set 3 : Updated file names, made requested changes. #

Total comments: 4

Patch Set 4 : Moved browser_otr_state_android out of android folder #

Patch Set 5 : Fixed comment for IsSessionRestoreInProgress #

Patch Set 6 : Rebase #

Total comments: 4

Patch Set 7 : Nit fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -77 lines) Patch
M chrome/browser/metrics/metrics_service.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sessions/session_restore_android.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/sync/glue/synced_window_delegate_android.h View 1 2 3 4 5 6 1 chunk +45 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/synced_window_delegate_android.cc View 1 2 3 4 5 6 1 chunk +72 lines, -11 lines 0 comments Download
D chrome/browser/sync/glue/synced_window_delegate_registry.h View 1 2 1 chunk +0 lines, -26 lines 0 comments Download
D chrome/browser/sync/glue/synced_window_delegate_registry.cc View 1 chunk +0 lines, -33 lines 0 comments Download
A chrome/browser/ui/android/tab_model/tab_model.h View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/ui/android/tab_model/tab_model.cc View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/browser/ui/android/tab_model/tab_model_list.h View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/ui/android/tab_model/tab_model_list.cc View 1 2 1 chunk +81 lines, -0 lines 0 comments Download
A chrome/browser/ui/browser_otr_state.h View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/browser/ui/browser_otr_state.cc View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/browser/ui/browser_otr_state_android.cc View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/history_ui.cc View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 5 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
David Trainor- moved to gerrit
8 years, 5 months ago (2012-07-09 22:42:36 UTC) #1
sky
I didn't look at the android or sync changes. I'm assuming one of the other ...
8 years, 5 months ago (2012-07-16 23:07:29 UTC) #2
sky
So, even though I didn't look at the android files I see they all end ...
8 years, 5 months ago (2012-07-16 23:17:55 UTC) #3
sky
https://chromiumcodereview.appspot.com/10701030/diff/7001/chrome/browser/ui/android/tab_model/tab_model_android.cc File chrome/browser/ui/android/tab_model/tab_model_android.cc (right): https://chromiumcodereview.appspot.com/10701030/diff/7001/chrome/browser/ui/android/tab_model/tab_model_android.cc#newcode13 chrome/browser/ui/android/tab_model/tab_model_android.cc:13: TabModelAndroid::TabModelAndroid() The order of definitions should match declarations. https://chromiumcodereview.appspot.com/10701030/diff/7001/chrome/browser/ui/android/tab_model/tab_model_android.cc#newcode15 ...
8 years, 5 months ago (2012-07-17 00:32:12 UTC) #4
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/10701030/diff/7001/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (right): https://chromiumcodereview.appspot.com/10701030/diff/7001/chrome/browser/metrics/metrics_service.cc#newcode1861 chrome/browser/metrics/metrics_service.cc:1861: return !TabModelListAndroid::IsOffTheRecordSessionActive(); On 2012/07/16 23:07:30, sky wrote: > I ...
8 years, 5 months ago (2012-07-18 23:59:04 UTC) #5
jar (doing other things)
Please upload changes. thx! https://chromiumcodereview.appspot.com/10701030/diff/7001/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (right): https://chromiumcodereview.appspot.com/10701030/diff/7001/chrome/browser/metrics/metrics_service.cc#newcode1861 chrome/browser/metrics/metrics_service.cc:1861: return !TabModelListAndroid::IsOffTheRecordSessionActive(); I see the ...
8 years, 5 months ago (2012-07-19 00:11:34 UTC) #6
David Trainor- moved to gerrit
Keep getting side tracked, will be up sometime soon today.
8 years, 5 months ago (2012-07-19 16:50:27 UTC) #7
David Trainor- moved to gerrit
ping :)
8 years, 5 months ago (2012-07-23 20:46:03 UTC) #8
jar (doing other things)
You should clarify who you are pinging for what part of the review. You have ...
8 years, 5 months ago (2012-07-23 20:49:31 UTC) #9
David Trainor- moved to gerrit
On 2012/07/23 20:49:31, jar wrote: > You should clarify who you are pinging for what ...
8 years, 5 months ago (2012-07-23 20:52:37 UTC) #10
sky
Additionally your last comment indicated you hadn't updated the patch. Is it up to date? ...
8 years, 5 months ago (2012-07-23 22:59:23 UTC) #11
David Trainor- moved to gerrit
Yeah I uploaded patch set 3, which should have all of the requested fixes. I'm ...
8 years, 5 months ago (2012-07-23 23:03:56 UTC) #12
David Trainor- moved to gerrit
Aah, I assumed uploading a new patch would automatically notify everyone on the list. That ...
8 years, 5 months ago (2012-07-23 23:05:57 UTC) #13
sky
I didn't look at TabModel/TabModelList. I'm assuming your other reviews are doing that. https://chromiumcodereview.appspot.com/10701030/diff/17001/chrome/browser/ui/android/browser_otr_state_android.cc File ...
8 years, 5 months ago (2012-07-24 04:03:57 UTC) #14
David Trainor- moved to gerrit
I saw most of the android implementations for this directory were under the android folder ...
8 years, 5 months ago (2012-07-24 05:31:10 UTC) #15
nyquist
http://codereview.chromium.org/10701030/diff/17001/chrome/browser/ui/android/tab_model/tab_model.h File chrome/browser/ui/android/tab_model/tab_model.h (right): http://codereview.chromium.org/10701030/diff/17001/chrome/browser/ui/android/tab_model/tab_model.h#newcode38 chrome/browser/ui/android/tab_model/tab_model.h:38: // Returns true when all tabs have been restored ...
8 years, 5 months ago (2012-07-24 18:32:34 UTC) #16
David Trainor- moved to gerrit
Fixed comments, moved browser_otr_state_android out of android folder. Rebased for git try. https://chromiumcodereview.appspot.com/10701030/diff/17001/chrome/browser/ui/android/browser_otr_state_android.cc File chrome/browser/ui/android/browser_otr_state_android.cc ...
8 years, 5 months ago (2012-07-24 20:48:52 UTC) #17
sky
LGTM
8 years, 5 months ago (2012-07-24 21:41:00 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtrainor@chromium.org/10701030/23004
8 years, 5 months ago (2012-07-25 16:48:15 UTC) #19
commit-bot: I haz the power
Presubmit check for 10701030-23004 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 5 months ago (2012-07-25 16:48:25 UTC) #20
David Trainor- moved to gerrit
Hey akalin, can you ptal? I didn't add someone from chrome/browser/sync on this change. I've ...
8 years, 5 months ago (2012-07-25 17:09:40 UTC) #21
David Trainor- moved to gerrit
Hi Nicolas. Can you please take a look at this? Been working with Yaron and ...
8 years, 5 months ago (2012-07-26 20:39:54 UTC) #22
akalin
LGTM http://codereview.chromium.org/10701030/diff/23004/chrome/browser/sync/glue/synced_window_delegate_android.cc File chrome/browser/sync/glue/synced_window_delegate_android.cc (left): http://codereview.chromium.org/10701030/diff/23004/chrome/browser/sync/glue/synced_window_delegate_android.cc#oldcode5 chrome/browser/sync/glue/synced_window_delegate_android.cc:5: #include "chrome/browser/sync/glue/synced_window_delegate.h" no need for this include (just ...
8 years, 4 months ago (2012-07-27 17:17:27 UTC) #23
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/10701030/diff/23004/chrome/browser/sync/glue/synced_window_delegate_android.cc File chrome/browser/sync/glue/synced_window_delegate_android.cc (left): https://chromiumcodereview.appspot.com/10701030/diff/23004/chrome/browser/sync/glue/synced_window_delegate_android.cc#oldcode5 chrome/browser/sync/glue/synced_window_delegate_android.cc:5: #include "chrome/browser/sync/glue/synced_window_delegate.h" On 2012/07/27 17:17:28, akalin wrote: > no ...
8 years, 4 months ago (2012-07-27 17:53:13 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtrainor@chromium.org/10701030/34001
8 years, 4 months ago (2012-07-27 17:57:27 UTC) #25
commit-bot: I haz the power
8 years, 4 months ago (2012-07-27 20:46:20 UTC) #26
Change committed as 148798

Powered by Google App Engine
This is Rietveld 408576698