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

Issue 4147007: Don't stomp on non-sync pending updates. (Closed)

Created:
10 years, 1 month ago by Sam Kerner (Chrome)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Don't stomp on non-sync pending updates. BUG=61581, chromium-os:7037 TEST=ExtensionsServiceTest.UpdatePendingExternalCrxWinsOverSync Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64788

Patch Set 1 #

Total comments: 3

Patch Set 2 : fix unit test constants. #

Patch Set 3 : Unit test fixes #

Patch Set 4 : Rebase for commit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -0 lines) Patch
M chrome/browser/extensions/extensions_service.cc View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extensions_service_unittest.cc View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 1 (0 generated)
Erik does not do reviews
10 years, 1 month ago (2010-10-28 00:10:54 UTC) #1
LGTM

I'm OK with you landing this as-is in order to address the bug, but I'm
concerned that we may not have the overall big picture logic correct for
handling the precedence of conflicting install locations.  Could you please add
a TODO to come back to this issue?

http://codereview.chromium.org/4147007/diff/1/2
File chrome/browser/extensions/extensions_service.cc (right):

http://codereview.chromium.org/4147007/diff/1/2#newcode731
chrome/browser/extensions/extensions_service.cc:731: // If a non-sync update is
pending, a sync request should not
This looks like it only affects sync as a source.  Is it ever a good thing to
have the same extension pending from multiple locations?

http://codereview.chromium.org/4147007/diff/1/2#newcode745
chrome/browser/extensions/extensions_service.cc:745: if
(!it->second.is_from_sync && is_from_sync)
shouldn't you just move this if (is_from_sync) around the whole outer block
here?  no need to do the work otherwise.

http://codereview.chromium.org/4147007/diff/1/3
File chrome/browser/extensions/extensions_service_unittest.cc (right):

http://codereview.chromium.org/4147007/diff/1/3#newcode1650
chrome/browser/extensions/extensions_service_unittest.cc:1650: theme_crx,
GURL(), PendingExtensionInfo::THEME, false, false, false);
either comment these bools or make them const named variables for doc purposes.

Powered by Google App Engine
This is Rietveld 408576698