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

Issue 6902054: [Sync] Rip out overly-complicated ExtensionData class (Closed)

Created:
9 years, 8 months ago by akalin
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, Erik does not do reviews, Aaron Boodman, pam+watch_chromium.org, Paweł Hajdan Jr., tim (not reviewing)
Visibility:
Public.

Description

[Sync] Rip out overly-complicated ExtensionData class Rip out sync code that took great pains to update client/server only when needed. We now rely on the underlying layers to handle redundant updates intelligently (which both the extension service and syncapi do). Add ExtensionSyncData::Merge() method. Clean up now-unneeded code in extension_util.{h,cc} and extension_sync.{h,cc}. BUG=72659 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=83221

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed asargent's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -810 lines) Patch
M chrome/browser/extensions/extension_sync_data.h View 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_sync_data.cc View 1 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_sync_data_unittest.cc View 1 chunk +86 lines, -0 lines 0 comments Download
D chrome/browser/sync/glue/extension_data.h View 1 chunk +0 lines, -65 lines 0 comments Download
D chrome/browser/sync/glue/extension_data.cc View 1 chunk +0 lines, -52 lines 0 comments Download
D chrome/browser/sync/glue/extension_data_unittest.cc View 1 chunk +0 lines, -93 lines 0 comments Download
M chrome/browser/sync/glue/extension_model_associator.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/extension_sync.h View 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/extension_sync.cc View 9 chunks +33 lines, -118 lines 0 comments Download
M chrome/browser/sync/glue/extension_sync_traits.h View 3 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/sync/glue/extension_sync_traits.cc View 4 chunks +1 line, -17 lines 0 comments Download
M chrome/browser/sync/glue/extension_util.h View 2 chunks +0 lines, -59 lines 0 comments Download
M chrome/browser/sync/glue/extension_util.cc View 2 chunks +0 lines, -106 lines 0 comments Download
M chrome/browser/sync/glue/extension_util_unittest.cc View 1 chunk +0 lines, -284 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
akalin
+asargent for extensions stuff, +zea for everything else
9 years, 8 months ago (2011-04-26 23:38:54 UTC) #1
asargent_no_longer_on_chrome
http://codereview.chromium.org/6902054/diff/1/chrome/browser/sync/glue/extension_sync.cc File chrome/browser/sync/glue/extension_sync.cc (right): http://codereview.chromium.org/6902054/diff/1/chrome/browser/sync/glue/extension_sync.cc#newcode51 chrome/browser/sync/glue/extension_sync.cc:51: result.first->second.Merge(*it); It's not really clear to me why you ...
9 years, 8 months ago (2011-04-27 16:45:19 UTC) #2
Nicolas Zea
sync changes LGTM
9 years, 8 months ago (2011-04-27 17:34:41 UTC) #3
akalin
http://codereview.chromium.org/6902054/diff/1/chrome/browser/sync/glue/extension_sync.cc File chrome/browser/sync/glue/extension_sync.cc (right): http://codereview.chromium.org/6902054/diff/1/chrome/browser/sync/glue/extension_sync.cc#newcode51 chrome/browser/sync/glue/extension_sync.cc:51: result.first->second.Merge(*it); On 2011/04/27 16:45:19, Antony Sargent wrote: > It's ...
9 years, 8 months ago (2011-04-27 17:53:24 UTC) #4
asargent_no_longer_on_chrome
Ok, that makes sense, thanks for the explanation. LGTM w/ one nit. http://codereview.chromium.org/6902054/diff/1/chrome/browser/extensions/extension_sync_data.cc File chrome/browser/extensions/extension_sync_data.cc ...
9 years, 8 months ago (2011-04-27 18:48:42 UTC) #5
akalin
9 years, 8 months ago (2011-04-27 21:25:32 UTC) #6
Addressed comments, checking in.

http://codereview.chromium.org/6902054/diff/1/chrome/browser/extensions/exten...
File chrome/browser/extensions/extension_sync_data.cc (right):

http://codereview.chromium.org/6902054/diff/1/chrome/browser/extensions/exten...
chrome/browser/extensions/extension_sync_data.cc:15: DCHECK_EQ(id, new_data.id);
On 2011/04/27 18:48:43, Antony Sargent wrote:
> nit: change this to a CHECK_EQ

Done.  Also changed the other DCHECKs.

Powered by Google App Engine
This is Rietveld 408576698