|
|
DescriptionGet ModelTypeStoreFactory for reading list from ProfileSyncService
This CL switches ReadingListModelFactory to using ProfileSyncService's factory
for ModelTypeStore. This allows ReadingList to share store with other types.
R=olivierrobin@chromium.org
BUG=664920
Review-Url: https://codereview.chromium.org/2663553003
Cr-Commit-Position: refs/heads/master@{#447390}
Committed: https://chromium.googlesource.com/chromium/src/+/9d905484261b3bf9205c65d95b86f306914a8581
Patch Set 1 #Patch Set 2 : Fix dependencies #Patch Set 3 : Fix dependencies #Patch Set 4 : Allow circular includes from reading_list #Patch Set 5 : Fix TabModelOrderControllerTest #
Messages
Total messages: 49 (36 generated)
The CQ bit was checked by pavely@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xco...)
The CQ bit was checked by pavely@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
The CQ bit was checked by pavely@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xco...)
The CQ bit was checked by pavely@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xco...)
Patchset #4 (id:60001) has been deleted
The CQ bit was checked by pavely@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
LGTM, but please wait until we determine the correct migration requirements.
The CQ bit was checked by pavely@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
The CQ bit was checked by olivierrobin@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
The CQ bit was checked by pavely@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Get ModelTypeStoreFactory for reading list from ProfileSyncService This CL switches ReadingListModelFactory to using ProfileSyncService's factory for ModelTypeStore. This allows ReadingList to share store with other types. R=olivierrobin@chromium.org BUG=664920 ========== to ========== Get ModelTypeStoreFactory for reading list from ProfileSyncService This CL switches ReadingListModelFactory to using ProfileSyncService's factory for ModelTypeStore. This allows ReadingList to share store with other types. R=olivierrobin@chromium.org BUG=664920 ==========
pavely@chromium.org changed reviewers: + rohitrao@chromium.org
+rohitrao@ Could you review changes in tab_model_order_controller_unittest.mm? My change broke TabModelOrderControllerTest. The issue was that TabModelSyncedWindowDelegatesGetter::GetSyncedWindowDelegates() tried to dereference GetApplicationContext()->GetChromeBrowserStateManager() which for this test wasn't setup and thus returned nullptr. I fixed it in PS#5 by adding IOSChromeScopedTestingChromeBrowserStateManager to the test.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2017/01/31 22:25:08, pavely wrote: > +rohitrao@ Could you review changes in tab_model_order_controller_unittest.mm? > > My change broke TabModelOrderControllerTest. The issue was that > TabModelSyncedWindowDelegatesGetter::GetSyncedWindowDelegates() tried to > dereference GetApplicationContext()->GetChromeBrowserStateManager() which for > this test wasn't setup and thus returned nullptr. > I fixed it in PS#5 by adding IOSChromeScopedTestingChromeBrowserStateManager to > the test. Adding IOSChromeScopedTestingChromeBrowserStateManager lgtm but why did this CL trigger that error? Why is the new code causing GetSyncedWindowDelegates() to be called at all?
Also please consider having sdefresne@ review the keyedservice and circular dependency changes.
On 2017/02/01 00:04:39, rohitrao wrote: > On 2017/01/31 22:25:08, pavely wrote: > > +rohitrao@ Could you review changes in tab_model_order_controller_unittest.mm? > > > > My change broke TabModelOrderControllerTest. The issue was that > > TabModelSyncedWindowDelegatesGetter::GetSyncedWindowDelegates() tried to > > dereference GetApplicationContext()->GetChromeBrowserStateManager() which for > > this test wasn't setup and thus returned nullptr. > > I fixed it in PS#5 by adding IOSChromeScopedTestingChromeBrowserStateManager > to > > the test. > > Adding IOSChromeScopedTestingChromeBrowserStateManager lgtm but why did this CL > trigger that error? Why is the new code causing GetSyncedWindowDelegates() to > be called at all? My change caused initialization of ProfileSyncService which (indirectly) causes creation of IOSChromeLocalSessionEventRouter. It in turn registers itself as an observer of GlobalWebStateEventTracker. Before my change notifications in GlobalWebStateEventTracker didn't execute any code. After my change they end up invoking IOSChromeLocalSessionEventRouter with the following stack: TabModelSyncedWindowDelegatesGetter::GetSyncedWindowDelegates() TabModelSyncedWindowDelegatesGetter::FindById(int) IOSChromeSyncedTabDelegate::ShouldSync(sync_sessions::SyncSessionsClient*) IOSChromeLocalSessionEventRouter::OnWebStateChange(web::WebState*) IOSChromeLocalSessionEventRouter::WebStateDestroyed(web::WebState*) web::GlobalWebStateEventTracker::WebStateDestroyed(web::WebState*)
pavely@chromium.org changed reviewers: + sdefresne@chromium.org
+sdefresne@: Could you review how I resolved circular include between i/c/b/reading_list and i/c/b/sync. I added reading_list in allow_circular_includes_from in i/c/b/sync/BUILD.gn. I followed approach used for passwords. I'm going to land this change as is. Let me know if you thinks dependencies should be organized differently and I'll address it in separate CL.
The CQ bit was checked by pavely@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from olivierrobin@chromium.org Link to the patchset: https://codereview.chromium.org/2663553003/#ps100001 (title: "Fix TabModelOrderControllerTest")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 100001, "attempt_start_ts": 1485909727996070, "parent_rev": "09cee5005baf9f8a5f216750be0688fca6f73f92", "commit_rev": "9d905484261b3bf9205c65d95b86f306914a8581"}
Message was sent while issue was closed.
Description was changed from ========== Get ModelTypeStoreFactory for reading list from ProfileSyncService This CL switches ReadingListModelFactory to using ProfileSyncService's factory for ModelTypeStore. This allows ReadingList to share store with other types. R=olivierrobin@chromium.org BUG=664920 ========== to ========== Get ModelTypeStoreFactory for reading list from ProfileSyncService This CL switches ReadingListModelFactory to using ProfileSyncService's factory for ModelTypeStore. This allows ReadingList to share store with other types. R=olivierrobin@chromium.org BUG=664920 Review-Url: https://codereview.chromium.org/2663553003 Cr-Commit-Position: refs/heads/master@{#447390} Committed: https://chromium.googlesource.com/chromium/src/+/9d905484261b3bf9205c65d95b86... ==========
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as https://chromium.googlesource.com/chromium/src/+/9d905484261b3bf9205c65d95b86... |