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

Issue 249843002: Introduce NonBlockingDataTypeController (Closed)

Created:
6 years, 8 months ago by rlarocque
Modified:
6 years, 8 months ago
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

Introduce NonBlockingDataTypeController The NonBlockingDataTypeController tracks the sync state of a non-blocking data type and sends signals to its components from the UI thread. It is responsible for enabling and disabling sync for a data type according to user preference and the availbility of the sync backend. This CL also includes some changes to the NonBlockingDataTypeProcessor, which is currently just a stub of what will eventually become non-blocking sync's model thread component, so that it can be used in testing NonBlockingDataTypeController. BUG=351005 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266344

Patch Set 1 #

Patch Set 2 : Remove unnecessary changes #

Patch Set 3 : Move some files to sync_driver #

Total comments: 17

Patch Set 4 : Some fixes #

Patch Set 5 : Fix some tests #

Total comments: 6

Patch Set 6 : Renames and fixes #

Total comments: 4

Patch Set 7 : Fix one nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+554 lines, -16 lines) Patch
M components/components_tests.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/sync_driver.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A components/sync_driver/non_blocking_data_type_controller.h View 1 2 3 4 5 6 1 chunk +136 lines, -0 lines 0 comments Download
A components/sync_driver/non_blocking_data_type_controller.cc View 1 2 3 4 5 1 chunk +137 lines, -0 lines 0 comments Download
A components/sync_driver/non_blocking_data_type_controller_unittest.cc View 1 2 3 4 5 1 chunk +227 lines, -0 lines 0 comments Download
M sync/internal_api/non_blocking_type_processor.cc View 1 2 3 4 5 3 chunks +21 lines, -9 lines 0 comments Download
M sync/internal_api/public/non_blocking_type_processor.h View 1 2 3 4 5 3 chunks +26 lines, -3 lines 0 comments Download
M sync/internal_api/sync_core_proxy_impl_unittest.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
rlarocque
Here's the next part of non-blocking sync. Please review.
6 years, 8 months ago (2014-04-23 17:54:37 UTC) #1
tim (not reviewing)
It looks like (awesomely!) all your includes are from base/ and sync/, which means it ...
6 years, 8 months ago (2014-04-23 18:28:04 UTC) #2
Nicolas Zea
Some initial comments https://codereview.chromium.org/249843002/diff/40001/components/sync_driver/non_blocking_data_type_controller.cc File components/sync_driver/non_blocking_data_type_controller.cc (right): https://codereview.chromium.org/249843002/diff/40001/components/sync_driver/non_blocking_data_type_controller.cc#newcode36 components/sync_driver/non_blocking_data_type_controller.cc:36: proxy_ = proxy->Clone(); Why clone? why ...
6 years, 8 months ago (2014-04-23 22:26:44 UTC) #3
rlarocque
https://codereview.chromium.org/249843002/diff/40001/components/sync_driver/non_blocking_data_type_controller.cc File components/sync_driver/non_blocking_data_type_controller.cc (right): https://codereview.chromium.org/249843002/diff/40001/components/sync_driver/non_blocking_data_type_controller.cc#newcode36 components/sync_driver/non_blocking_data_type_controller.cc:36: proxy_ = proxy->Clone(); On 2014/04/23 22:26:45, Nicolas Zea wrote: ...
6 years, 8 months ago (2014-04-23 23:28:34 UTC) #4
rlarocque
The latest upload seems to be doing well on the trybots. ping/PTAL.
6 years, 8 months ago (2014-04-24 21:18:55 UTC) #5
Nicolas Zea
https://codereview.chromium.org/249843002/diff/40001/components/sync_driver/non_blocking_data_type_controller.cc File components/sync_driver/non_blocking_data_type_controller.cc (right): https://codereview.chromium.org/249843002/diff/40001/components/sync_driver/non_blocking_data_type_controller.cc#newcode58 components/sync_driver/non_blocking_data_type_controller.cc:58: if (GetDesiredState() == current_state_) { On 2014/04/23 23:28:35, rlarocque ...
6 years, 8 months ago (2014-04-24 22:31:20 UTC) #6
rlarocque
Patch updated. PTAL. https://codereview.chromium.org/249843002/diff/40001/components/sync_driver/non_blocking_data_type_controller.h File components/sync_driver/non_blocking_data_type_controller.h (right): https://codereview.chromium.org/249843002/diff/40001/components/sync_driver/non_blocking_data_type_controller.h#newcode76 components/sync_driver/non_blocking_data_type_controller.h:76: void SetIsUserEnabled(bool is_user_enabled); On 2014/04/24 22:31:21, ...
6 years, 8 months ago (2014-04-25 17:44:47 UTC) #7
Nicolas Zea
LGTM https://codereview.chromium.org/249843002/diff/100001/components/sync_driver/non_blocking_data_type_controller.h File components/sync_driver/non_blocking_data_type_controller.h (right): https://codereview.chromium.org/249843002/diff/100001/components/sync_driver/non_blocking_data_type_controller.h#newcode56 components/sync_driver/non_blocking_data_type_controller.h:56: NonBlockingDataTypeController(syncer::ModelType type, bool is_preferred); nit: style guide prefers ...
6 years, 8 months ago (2014-04-25 20:47:28 UTC) #8
rlarocque
https://codereview.chromium.org/249843002/diff/100001/components/sync_driver/non_blocking_data_type_controller.h File components/sync_driver/non_blocking_data_type_controller.h (right): https://codereview.chromium.org/249843002/diff/100001/components/sync_driver/non_blocking_data_type_controller.h#newcode56 components/sync_driver/non_blocking_data_type_controller.h:56: NonBlockingDataTypeController(syncer::ModelType type, bool is_preferred); On 2014/04/25 20:47:28, Nicolas Zea ...
6 years, 8 months ago (2014-04-25 21:03:46 UTC) #9
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 8 months ago (2014-04-25 21:04:01 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/249843002/120001
6 years, 8 months ago (2014-04-25 22:02:24 UTC) #11
commit-bot: I haz the power
6 years, 8 months ago (2014-04-26 09:57:49 UTC) #12
Message was sent while issue was closed.
Change committed as 266344

Powered by Google App Engine
This is Rietveld 408576698