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

Issue 2684533003: [Sync] Register PROXY_TABS with ModelTypeRegistry to include it in enabled types (Closed)

Created:
3 years, 10 months ago by pavely
Modified:
3 years, 10 months ago
Reviewers:
skym
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Register PROXY_TABS with ModelTypeRegistry to include it in enabled types The issue is that PROXY_TABS type doesn't represent a type that gets synced with the server, no entries are committed by the client or downloaded from the server. Because of this PROXY_TABS doesn't need update handler in ModelTypeRegistry. Unfortunately value of tabs_datatype_enabled is decided based on the presence of PROXY_TABS in the set of enabled types. The change I made is to register the type anyway thus including it in the set of enabled directory types. It is not the ideal solution, but it is the smallest, least invasive one. It limits ugliness to ProxyDataTypeController. BUG=688045 R=skym@chromium.org Review-Url: https://codereview.chromium.org/2684533003 Cr-Commit-Position: refs/heads/master@{#448873} Committed: https://chromium.googlesource.com/chromium/src/+/5402cfa4cf2e6841bf3269bdfb8c3ee2bb3788cc

Patch Set 1 #

Total comments: 4

Patch Set 2 : Update comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M components/sync/driver/proxy_data_type_controller.cc View 1 3 chunks +13 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
pavely
3 years, 10 months ago (2017-02-07 20:37:38 UTC) #2
skym
lgtm https://codereview.chromium.org/2684533003/diff/1/components/sync/driver/proxy_data_type_controller.cc File components/sync/driver/proxy_data_type_controller.cc (right): https://codereview.chromium.org/2684533003/diff/1/components/sync/driver/proxy_data_type_controller.cc#newcode32 components/sync/driver/proxy_data_type_controller.cc:32: // by the presence of PROXY_TABS in the ...
3 years, 10 months ago (2017-02-07 22:40:11 UTC) #6
pavely
https://codereview.chromium.org/2684533003/diff/1/components/sync/driver/proxy_data_type_controller.cc File components/sync/driver/proxy_data_type_controller.cc (right): https://codereview.chromium.org/2684533003/diff/1/components/sync/driver/proxy_data_type_controller.cc#newcode32 components/sync/driver/proxy_data_type_controller.cc:32: // by the presence of PROXY_TABS in the list ...
3 years, 10 months ago (2017-02-08 01:35:27 UTC) #7
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/2684533003/20001
3 years, 10 months ago (2017-02-08 01:36:26 UTC) #10
commit-bot: I haz the power
3 years, 10 months ago (2017-02-08 02:49:40 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/5402cfa4cf2e6841bf3269bdfb8c...

Powered by Google App Engine
This is Rietveld 408576698