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

Issue 1240573012: Extension syncing: Introduce a NeedsSync pref (Closed)

Created:
5 years, 5 months ago by Marc Treib
Modified:
5 years, 5 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@ext_sync_uninstall
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extension syncing: Introduce a NeedsSync pref that indicates the extension has local changes that still need to be synced. It's set when something changes before sync is ready, and cleared once the extension state has been synced. This should handle all conflicts between sync and local state reasonably well, and as a bonus allows us to get rid of the (weird and not-really-working) PendingEnables class. BUG=509990 Committed: https://crrev.com/c349453205678fda3d6a8a7f1a90a5cec56b8216 Cr-Commit-Position: refs/heads/master@{#339651}

Patch Set 1 #

Total comments: 21

Patch Set 2 : rebase #

Patch Set 3 : review #

Patch Set 4 : more cleanup; fix test #

Total comments: 16

Patch Set 5 : review2 #

Patch Set 6 : fix sync_integration_tests build #

Patch Set 7 : ...and browser_tests #

Total comments: 11

Patch Set 8 : review #

Patch Set 9 : rebase (and comment fixes) #

Patch Set 10 : fix #

Patch Set 11 : (b); hackfix sync_integration_tests #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -400 lines) Patch
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +12 lines, -14 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 26 chunks +44 lines, -57 lines 2 comments Download
M chrome/browser/extensions/extension_sync_data.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_sync_service.h View 1 2 3 4 5 6 7 4 chunks +25 lines, -30 lines 0 comments Download
M chrome/browser/extensions/extension_sync_service.cc View 1 2 3 4 5 6 7 8 9 10 13 chunks +97 lines, -90 lines 2 comments Download
D chrome/browser/extensions/pending_enables.h View 1 chunk +0 lines, -66 lines 0 comments Download
D chrome/browser/extensions/pending_enables.cc View 1 1 chunk +0 lines, -62 lines 0 comments Download
M chrome/browser/extensions/sync_bundle.h View 1 2 3 4 5 6 7 3 chunks +17 lines, -23 lines 0 comments Download
M chrome/browser/extensions/sync_bundle.cc View 1 2 3 4 5 6 7 8 9 6 chunks +21 lines, -47 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M extensions/browser/extension_prefs.h View 1 chunk +6 lines, -0 lines 0 comments Download
M extensions/browser/extension_prefs.cc View 1 2 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
Marc Treib
First shot at the new pref, PTAL! (This CL is based on https://codereview.chromium.org/1236363002, but basically ...
5 years, 5 months ago (2015-07-15 13:45:00 UTC) #2
not at google - send to devlin
Some non-trivial comments. It might be nice to land that further cleanup I mentioned in ...
5 years, 5 months ago (2015-07-15 20:27:57 UTC) #3
Marc Treib
https://codereview.chromium.org/1240573012/diff/1/chrome/browser/extensions/extension_sync_service.cc File chrome/browser/extensions/extension_sync_service.cc (right): https://codereview.chromium.org/1240573012/diff/1/chrome/browser/extensions/extension_sync_service.cc#newcode84 chrome/browser/extensions/extension_sync_service.cc:84: result.reserve(data.size()); On 2015/07/15 20:27:57, kalman wrote: > You should ...
5 years, 5 months ago (2015-07-16 09:22:34 UTC) #4
Marc Treib
https://codereview.chromium.org/1240573012/diff/50001/chrome/browser/extensions/extension_service_unittest.cc File chrome/browser/extensions/extension_service_unittest.cc (right): https://codereview.chromium.org/1240573012/diff/50001/chrome/browser/extensions/extension_service_unittest.cc#newcode5928 chrome/browser/extensions/extension_service_unittest.cc:5928: ASSERT_FALSE(service()->IsExtensionEnabled(good0)); Turns out I broke this test: Installing the ...
5 years, 5 months ago (2015-07-16 13:20:43 UTC) #5
not at google - send to devlin
btw the thing about the uninstalled extension tombstone makes sense in a follow-up. https://codereview.chromium.org/1240573012/diff/1/chrome/browser/extensions/extension_sync_service.cc File ...
5 years, 5 months ago (2015-07-16 18:25:47 UTC) #6
Marc Treib
https://codereview.chromium.org/1240573012/diff/1/chrome/browser/extensions/extension_sync_service.cc File chrome/browser/extensions/extension_sync_service.cc (right): https://codereview.chromium.org/1240573012/diff/1/chrome/browser/extensions/extension_sync_service.cc#newcode149 chrome/browser/extensions/extension_sync_service.cc:149: } else if (extension_service_->is_ready() && !flare_.is_null()) { On 2015/07/16 ...
5 years, 5 months ago (2015-07-17 10:24:06 UTC) #7
not at google - send to devlin
lgtm, thanks for sticking with this. https://codereview.chromium.org/1240573012/diff/50001/chrome/browser/extensions/extension_sync_service.cc File chrome/browser/extensions/extension_sync_service.cc (right): https://codereview.chromium.org/1240573012/diff/50001/chrome/browser/extensions/extension_sync_service.cc#newcode123 chrome/browser/extensions/extension_sync_service.cc:123: // See crbug.com/256795. ...
5 years, 5 months ago (2015-07-17 15:28:51 UTC) #8
Marc Treib
https://codereview.chromium.org/1240573012/diff/50001/chrome/browser/extensions/extension_sync_service.cc File chrome/browser/extensions/extension_sync_service.cc (right): https://codereview.chromium.org/1240573012/diff/50001/chrome/browser/extensions/extension_sync_service.cc#newcode123 chrome/browser/extensions/extension_sync_service.cc:123: // See crbug.com/256795. On 2015/07/17 15:28:50, kalman wrote: > ...
5 years, 5 months ago (2015-07-20 09:28:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1240573012/170001
5 years, 5 months ago (2015-07-20 11:29:45 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/40231)
5 years, 5 months ago (2015-07-20 11:59:55 UTC) #14
Marc Treib
Argh, of course there's more complications... (1) Extensions can be installed before the ExtensionSyncService exists. ...
5 years, 5 months ago (2015-07-20 16:19:25 UTC) #16
not at google - send to devlin
On 2015/07/20 16:19:25, Marc Treib wrote: > Argh, of course there's more complications... > > ...
5 years, 5 months ago (2015-07-20 16:36:56 UTC) #17
Marc Treib
On 2015/07/20 16:36:56, kalman wrote: > On 2015/07/20 16:19:25, Marc Treib wrote: > > Argh, ...
5 years, 5 months ago (2015-07-21 10:51:56 UTC) #18
Marc Treib
https://codereview.chromium.org/1240573012/diff/210001/chrome/browser/extensions/extension_service_unittest.cc File chrome/browser/extensions/extension_service_unittest.cc (left): https://codereview.chromium.org/1240573012/diff/210001/chrome/browser/extensions/extension_service_unittest.cc#oldcode1151 chrome/browser/extensions/extension_service_unittest.cc:1151: void InitializeExtensionSyncService() { Not necessary anymore, now that the ...
5 years, 5 months ago (2015-07-21 10:54:00 UTC) #19
not at google - send to devlin
https://codereview.chromium.org/1240573012/diff/210001/chrome/browser/extensions/extension_service_unittest.cc File chrome/browser/extensions/extension_service_unittest.cc (left): https://codereview.chromium.org/1240573012/diff/210001/chrome/browser/extensions/extension_service_unittest.cc#oldcode1151 chrome/browser/extensions/extension_service_unittest.cc:1151: void InitializeExtensionSyncService() { On 2015/07/21 10:54:00, Marc Treib wrote: ...
5 years, 5 months ago (2015-07-21 13:43:30 UTC) #20
Marc Treib
On 2015/07/21 13:43:30, kalman wrote: > https://codereview.chromium.org/1240573012/diff/210001/chrome/browser/extensions/extension_service_unittest.cc > File chrome/browser/extensions/extension_service_unittest.cc (left): > > https://codereview.chromium.org/1240573012/diff/210001/chrome/browser/extensions/extension_service_unittest.cc#oldcode1151 > ...
5 years, 5 months ago (2015-07-21 13:56:48 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1240573012/210001
5 years, 5 months ago (2015-07-21 13:57:13 UTC) #24
commit-bot: I haz the power
Committed patchset #11 (id:210001)
5 years, 5 months ago (2015-07-21 14:51:59 UTC) #25
commit-bot: I haz the power
5 years, 5 months ago (2015-07-21 14:53:04 UTC) #26
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/c349453205678fda3d6a8a7f1a90a5cec56b8216
Cr-Commit-Position: refs/heads/master@{#339651}

Powered by Google App Engine
This is Rietveld 408576698