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

Issue 2923013006: [Extensions Sync] Don't apply sync data for unsyncable extensions (Closed)

Created:
3 years, 6 months ago by Devlin
Modified:
3 years, 6 months ago
Reviewers:
karandeepb, lazyboy
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions Sync] Don't apply sync data for unsyncable extensions Some extensions are considered "unsyncable" - this includes extensions that are installed by default (since we don't want to push them to propogate everywhere). However, we weren't checking if an extension was syncable before applying the sync data from the server. This meant that it was possible to get into a bad state where, if a user has an extension that is default installed on one machine, but not another, the extension would be synced down, but never updated. In one case, this can result in the extension always becoming disabled. Fix this by checking for if an extension is syncable before applying sync data, and add a couple of tests. BUG=731824 Review-Url: https://codereview.chromium.org/2923013006 Cr-Commit-Position: refs/heads/master@{#479039} Committed: https://chromium.googlesource.com/chromium/src/+/2f1ed4c9530785eab233370a9e8429451d987515

Patch Set 1 #

Patch Set 2 : testfix #

Patch Set 3 : add bug number #

Total comments: 11

Patch Set 4 : karandeepb's #

Total comments: 6

Patch Set 5 : lazyboy's #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -5 lines) Patch
M chrome/browser/extensions/chrome_test_extension_loader.cc View 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_service_sync_unittest.cc View 1 2 3 4 5 chunks +187 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_sync_service.cc View 1 2 2 chunks +13 lines, -4 lines 0 comments Download

Messages

Total messages: 31 (25 generated)
Devlin
Hey folks, mind taking a look? https://codereview.chromium.org/2923013006/diff/40001/chrome/browser/extensions/extension_service_sync_unittest.cc File chrome/browser/extensions/extension_service_sync_unittest.cc (left): https://codereview.chromium.org/2923013006/diff/40001/chrome/browser/extensions/extension_service_sync_unittest.cc#oldcode1394 chrome/browser/extensions/extension_service_sync_unittest.cc:1394: not sure how ...
3 years, 6 months ago (2017-06-09 20:16:35 UTC) #15
karandeepb
LGTM with nits. https://codereview.chromium.org/2923013006/diff/40001/chrome/browser/extensions/chrome_test_extension_loader.cc File chrome/browser/extensions/chrome_test_extension_loader.cc (left): https://codereview.chromium.org/2923013006/diff/40001/chrome/browser/extensions/chrome_test_extension_loader.cc#oldcode121 chrome/browser/extensions/chrome_test_extension_loader.cc:121: base::FilePath* pem_path_to_use = &fallback_pem_path; Isn't this ...
3 years, 6 months ago (2017-06-09 22:53:37 UTC) #16
lazyboy
lgtm https://codereview.chromium.org/2923013006/diff/60001/chrome/browser/extensions/extension_service_sync_unittest.cc File chrome/browser/extensions/extension_service_sync_unittest.cc (right): https://codereview.chromium.org/2923013006/diff/60001/chrome/browser/extensions/extension_service_sync_unittest.cc#newcode372 chrome/browser/extensions/extension_service_sync_unittest.cc:372: ExtensionSyncData disable_extension( This pattern: ExtensionSyncData ... SyncChangeList list ...
3 years, 6 months ago (2017-06-12 20:59:55 UTC) #21
Devlin
https://codereview.chromium.org/2923013006/diff/40001/chrome/browser/extensions/chrome_test_extension_loader.cc File chrome/browser/extensions/chrome_test_extension_loader.cc (left): https://codereview.chromium.org/2923013006/diff/40001/chrome/browser/extensions/chrome_test_extension_loader.cc#oldcode121 chrome/browser/extensions/chrome_test_extension_loader.cc:121: base::FilePath* pem_path_to_use = &fallback_pem_path; On 2017/06/09 22:53:36, karandeepb wrote: ...
3 years, 6 months ago (2017-06-13 16:14:45 UTC) #24
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/2923013006/80001
3 years, 6 months ago (2017-06-13 16:15:19 UTC) #28
commit-bot: I haz the power
3 years, 6 months ago (2017-06-13 16:22:29 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/2f1ed4c9530785eab233370a9e84...

Powered by Google App Engine
This is Rietveld 408576698