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

Issue 4852002: Fix for Bug 50726 "Save extension list and "winning" prefs from extensions" (Closed)

Created:
10 years, 1 month ago by battre (please use the other)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org, ben+cc_chromium.org, danno, Paweł Hajdan Jr., Mattias Nissler (ping if slow)
Visibility:
Public.

Description

Fix for Bug 50726 "Save extension list and "winning" prefs from extensions" This is a continuation of http://codereview.chromium.org/4438001/ http://codereview.chromium.org/4551001/ (see these CLs for previous discussions). I created a new CL because the approach is significantly different from the previous CLs. The goal of this patch is to ensure that Chrome maintains the order in which extensions apply their preferences between restarts. This may be an issue if two extensions overwrite each others preferences. Furthermore, it ensures that preferences are persisted to disk between browser restarts. Therefore, previous settings are immediately available when the browser is restarted. A description of the design has been published https://docs.google.com/a/google.com/document/d/1E_HX_cUpET1gH2gDunGIU1EOywMM6FEOuVU6TlpnSwo/edit?hl=en for review and comments. - Sorry, accessible Google internally only. Contributed by battre@google.com BUG=50726 TEST=none

Patch Set 1 #

Patch Set 2 : Fixed whitespaces #

Total comments: 30

Patch Set 3 : Addressed review comments #

Total comments: 2

Patch Set 4 : Addressed Pawel's comment #

Patch Set 5 : Renamed key under which preferences are stored in the user prefs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+653 lines, -164 lines) Patch
M chrome/browser/extensions/extension_pref_store.h View 1 2 8 chunks +107 lines, -22 lines 0 comments Download
M chrome/browser/extensions/extension_pref_store.cc View 1 2 3 4 6 chunks +202 lines, -78 lines 0 comments Download
M chrome/browser/extensions/extension_pref_store_unittest.cc View 1 2 3 18 chunks +344 lines, -64 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
battre (please use the other)
Hi. This is a follow-up to http://codereview.chromium.org/4438001/ I created a new issue because the code ...
10 years, 1 month ago (2010-11-12 15:50:58 UTC) #1
Bernhard Bauer
http://codereview.chromium.org/4852002/diff/5001/chrome/browser/extensions/extension_pref_store.cc File chrome/browser/extensions/extension_pref_store.cc (right): http://codereview.chromium.org/4852002/diff/5001/chrome/browser/extensions/extension_pref_store.cc#newcode31 chrome/browser/extensions/extension_pref_store.cc:31: DCHECK(dict_->size()==2); Use DCHECK_EQ(2, dict->size()) for better error messages. http://codereview.chromium.org/4852002/diff/5001/chrome/browser/extensions/extension_pref_store.cc#newcode35 ...
10 years, 1 month ago (2010-11-12 18:16:57 UTC) #2
battre (please use the other)
Thank you very much, Bernhard. I have addressed the issues, except for """ 179 180 ...
10 years, 1 month ago (2010-11-12 19:07:09 UTC) #3
Paweł Hajdan Jr.
Drive-by with a minor test comment. No need to wait for another review by me. ...
10 years, 1 month ago (2010-11-13 11:51:10 UTC) #4
battre (please use the other)
Thank you, fixed. Dominic http://codereview.chromium.org/4852002/diff/12001/chrome/browser/extensions/extension_pref_store_unittest.cc File chrome/browser/extensions/extension_pref_store_unittest.cc (right): http://codereview.chromium.org/4852002/diff/12001/chrome/browser/extensions/extension_pref_store_unittest.cc#newcode164 chrome/browser/extensions/extension_pref_store_unittest.cc:164: testing::Test::SetUp(); On 2010/11/13 11:51:10, Paweł ...
10 years, 1 month ago (2010-11-15 09:27:07 UTC) #5
battre (please use the other)
Hi. Mattias and I went to the white board and discussed some strategies for addressing ...
10 years, 1 month ago (2010-11-15 16:48:05 UTC) #6
Aaron Boodman
10 years, 1 month ago (2010-11-15 17:04:17 UTC) #7
VC tomorrow sounds good.

- a

On Mon, Nov 15, 2010 at 8:48 AM,  <battre@google.com> wrote:
> Hi.
>
> Mattias and I went to the white board and discussed some strategies for
> addressing Aaron's comments raised in
>
https://docs.google.com/a/google.com/document/d/1E_HX_cUpET1gH2gDunGIU1EOywMM...
> .
>
> Basically it is possible to integrate the cached preferences in the tree but
> it
> creates some new dependencies that Mattias was not very happy about. Pam
> mentioned that she did not have strong feelings for either approach.
>
> Aaron would you like to do a VC about this? Based on the discussion we had
> here,
> we think it is much easier to talk about this interactively. Would you be
> available tomorrow morning? (Currently Calendar is offline, so it difficult
> to
> schedule a VC room)
>
> Best,
> Dominic
>
>
>
> http://codereview.chromium.org/4852002/
>

Powered by Google App Engine
This is Rietveld 408576698