Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Issue 1518028: Fix bug that caused us to have many duplicate registrations (Closed)

Created:
10 years, 8 months ago by Aaron Boodman
Modified:
9 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Fix bug that caused us to have many duplicate registrations recorded in extension prefs for override pages. BUG=41442 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=44551

Patch Set 1 #

Patch Set 2 : add comment #

Patch Set 3 : formatting #

Total comments: 1

Patch Set 4 : Also clean up existing occurences #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -5 lines) Patch
M chrome/browser/extensions/extension_dom_ui.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_dom_ui.cc View 1 2 3 5 chunks +27 lines, -3 lines 2 comments Download
M chrome/browser/extensions/extension_override_apitest.cc View 1 2 3 3 chunks +67 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Aaron Boodman
10 years, 8 months ago (2010-04-14 09:08:17 UTC) #1
Erik does not do reviews
Do we need to go anything to clean up the existing bogus entries in people's ...
10 years, 8 months ago (2010-04-14 17:19:32 UTC) #2
Aaron Boodman
On Wed, Apr 14, 2010 at 10:19 AM, <[email protected]> wrote: > Do we need to ...
10 years, 8 months ago (2010-04-14 17:33:43 UTC) #3
Aaron Boodman
Ready for another look.
10 years, 8 months ago (2010-04-14 20:40:11 UTC) #4
Erik does not do reviews
10 years, 8 months ago (2010-04-14 20:48:42 UTC) #5
LGTM

http://codereview.chromium.org/1518028/diff/7001/5002
File chrome/browser/extensions/extension_dom_ui.cc (right):

http://codereview.chromium.org/1518028/diff/7001/5002#newcode48
chrome/browser/extensions/extension_dom_ui.cc:48: // De-dupes the items in
|list|. Assumes the values are strings.
Add comment referencing bug and mention that this could eventually be removed.

http://codereview.chromium.org/1518028/diff/7001/5002#newcode52
chrome/browser/extensions/extension_dom_ui.cc:52: // Loop backwards as we may be
removing items.
this also has the cool side effect of preserving precedence order.  very nice.

Powered by Google App Engine
This is Rietveld 408576698