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

Issue 8515002: Take out and generalize user prefs overriding from IncognitoUserPrefStore. (Closed)

Created:
9 years, 1 month ago by mnaganov (inactive)
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Take out and generalize user prefs overriding from IncognitoUserPrefStore. Add support for "local" and "global" user preferences where a "local" preference set in the overlay shadows the "global" preference. BUG=none TEST=OverlayUserPrefStoreTest* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109865

Patch Set 1 #

Total comments: 16

Patch Set 2 : Comments addressed #

Patch Set 3 : Properly rebased #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+501 lines, -425 lines) Patch
M chrome/browser/prefs/incognito_user_pref_store.h View 1 chunk +2 lines, -51 lines 0 comments Download
M chrome/browser/prefs/incognito_user_pref_store.cc View 1 chunk +5 lines, -143 lines 0 comments Download
D chrome/browser/prefs/incognito_user_pref_store_unittest.cc View 1 chunk +0 lines, -217 lines 0 comments Download
A + chrome/browser/prefs/overlay_user_pref_store.h View 1 3 chunks +26 lines, -13 lines 2 comments Download
A chrome/browser/prefs/overlay_user_pref_store.cc View 1 chunk +183 lines, -0 lines 0 comments Download
A chrome/browser/prefs/overlay_user_pref_store_unittest.cc View 1 1 chunk +282 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
mnaganov (inactive)
9 years, 1 month ago (2011-11-10 11:21:21 UTC) #1
Mattias Nissler (ping if slow)
mostly good, some suggestions on making the test code more concise. http://codereview.chromium.org/8515002/diff/1/chrome/browser/prefs/overlay_user_pref_store.h File chrome/browser/prefs/overlay_user_pref_store.h (right): ...
9 years, 1 month ago (2011-11-10 12:45:17 UTC) #2
mnaganov (inactive)
-40 LOC thanks to your comments! http://codereview.chromium.org/8515002/diff/1/chrome/browser/prefs/overlay_user_pref_store.h File chrome/browser/prefs/overlay_user_pref_store.h (right): http://codereview.chromium.org/8515002/diff/1/chrome/browser/prefs/overlay_user_pref_store.h#newcode60 chrome/browser/prefs/overlay_user_pref_store.h:60: typedef base::hash_map<std::string, std::string> ...
9 years, 1 month ago (2011-11-10 14:49:40 UTC) #3
mnaganov (inactive)
Sorry, it looks like my change wasn't rebased correctly. Will reupload in a minute
9 years, 1 month ago (2011-11-10 14:51:46 UTC) #4
mnaganov (inactive)
On 2011/11/10 14:51:46, Mikhail Naganov (Chromium) wrote: > Sorry, it looks like my change wasn't ...
9 years, 1 month ago (2011-11-14 10:15:23 UTC) #5
Mattias Nissler (ping if slow)
LGTM with a nit. http://codereview.chromium.org/8515002/diff/8009/chrome/browser/prefs/overlay_user_pref_store.h File chrome/browser/prefs/overlay_user_pref_store.h (right): http://codereview.chromium.org/8515002/diff/8009/chrome/browser/prefs/overlay_user_pref_store.h#newcode12 chrome/browser/prefs/overlay_user_pref_store.h:12: #include "base/hash_tables.h" remove this and ...
9 years, 1 month ago (2011-11-14 12:04:55 UTC) #6
mnaganov (inactive)
9 years, 1 month ago (2011-11-14 12:07:31 UTC) #7
Thank you very much!

http://codereview.chromium.org/8515002/diff/8009/chrome/browser/prefs/overlay...
File chrome/browser/prefs/overlay_user_pref_store.h (right):

http://codereview.chromium.org/8515002/diff/8009/chrome/browser/prefs/overlay...
chrome/browser/prefs/overlay_user_pref_store.h:12: #include "base/hash_tables.h"
On 2011/11/14 12:04:55, Mattias Nissler wrote:
> remove this and instead #include <map>

Done.

Powered by Google App Engine
This is Rietveld 408576698