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

Issue 6852029: [Sync] Move some extension-sync-related logic to ExtensionService (Closed)

Created:
9 years, 8 months ago by akalin
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

[Sync] Move some extension-sync-related logic to ExtensionService Add ExtensionSyncData class to hold the data that goes between the extension service and extension sync. Add ProcessSyncData() method to ExtensionService (with unit tests!). Remove now-unneeded extension sync functions. BUG=77995 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81899

Patch Set 1 #

Patch Set 2 : Add TODO, fix lint #

Total comments: 14

Patch Set 3 : Fix win warning #

Patch Set 4 : Fix more compile errors #

Patch Set 5 : Address asargent's comments #

Patch Set 6 : Fix mac compile error #

Total comments: 4

Patch Set 7 : Address asargent's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+387 lines, -209 lines) Patch
M chrome/browser/background_application_list_model_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 4 chunks +29 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 2 chunks +58 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.h View 2 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 10 chunks +161 lines, -8 lines 0 comments Download
A chrome/browser/extensions/extension_sync_data.h View 1 2 3 4 5 6 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_sync_data.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_updater_unittest.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/mock_extension_service.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/extension_change_processor.cc View 1 2 3 4 4 chunks +20 lines, -19 lines 0 comments Download
M chrome/browser/sync/glue/extension_sync.h View 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/sync/glue/extension_sync.cc View 1 2 3 4 4 chunks +8 lines, -125 lines 0 comments Download
M chrome/browser/sync/glue/extension_util.h View 1 2 3 4 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/extension_util.cc View 1 2 3 4 3 chunks +28 lines, -13 lines 0 comments Download
M chrome/browser/sync/glue/extension_util_unittest.cc View 1 chunk +0 lines, -16 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/testing_profile.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/testing_profile.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
akalin
+asargent for extension stuff, +zea for sync stuff
9 years, 8 months ago (2011-04-14 20:59:49 UTC) #1
asargent_no_longer_on_chrome
http://codereview.chromium.org/6852029/diff/7002/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): http://codereview.chromium.org/6852029/diff/7002/chrome/browser/extensions/extension_service.cc#newcode1199 chrome/browser/extensions/extension_service.cc:1199: browser_sync::IsValidAndSyncableApp(extension); I'm not crazy about seeing the ExtensionService using ...
9 years, 8 months ago (2011-04-14 23:32:14 UTC) #2
akalin
All comments addressed, please take another look http://codereview.chromium.org/6852029/diff/7002/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): http://codereview.chromium.org/6852029/diff/7002/chrome/browser/extensions/extension_service.cc#newcode1199 chrome/browser/extensions/extension_service.cc:1199: browser_sync::IsValidAndSyncableApp(extension); On ...
9 years, 8 months ago (2011-04-15 01:17:11 UTC) #3
Nicolas Zea
Sync change LGTM
9 years, 8 months ago (2011-04-15 04:41:10 UTC) #4
asargent_no_longer_on_chrome
extension parts lgtm http://codereview.chromium.org/6852029/diff/9006/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): http://codereview.chromium.org/6852029/diff/9006/chrome/browser/extensions/extension_service.cc#newcode1195 chrome/browser/extensions/extension_service.cc:1195: should_allow_install) { Nit: consider just calling ...
9 years, 8 months ago (2011-04-15 18:42:30 UTC) #5
akalin
9 years, 8 months ago (2011-04-15 21:19:39 UTC) #6
Checking in as soon as trybots pass

http://codereview.chromium.org/6852029/diff/9006/chrome/browser/extensions/ex...
File chrome/browser/extensions/extension_service.cc (right):

http://codereview.chromium.org/6852029/diff/9006/chrome/browser/extensions/ex...
chrome/browser/extensions/extension_service.cc:1195: should_allow_install) {
On 2011/04/15 18:42:30, Antony Sargent wrote:
> Nit: consider just calling this "allow" or something to avoid this weird
> line-wrapping. Or, perhaps shorten ShouldAllowInstallPredicate to just
> "AllowPredicate" or "AllowFunc"? 
> 
> 

Done.

http://codereview.chromium.org/6852029/diff/9006/chrome/browser/extensions/ex...
File chrome/browser/extensions/extension_sync_data.h (right):

http://codereview.chromium.org/6852029/diff/9006/chrome/browser/extensions/ex...
chrome/browser/extensions/extension_sync_data.h:5: // A struct that encapsulates
the synced properties of an Extension.
On 2011/04/15 18:42:30, Antony Sargent wrote:
> nit: move this to be right above the "struct" declaration on line 15.

Done.

Powered by Google App Engine
This is Rietveld 408576698