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

Issue 7342043: Fixed regression: various preferences were not persisted when changed from incognito window (Closed)

Created:
9 years, 5 months ago by battre
Modified:
9 years, 5 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., Miranda Callahan, jochen (gone - plz use gerrit), sky, Glen Murphy, Peter Kasting
Visibility:
Public.

Description

Fixed regression: various preferences were not persisted when changed from incognito window This CL renames the OverlayPrefStore to an IncognitoPrefStore. This IncognitoPrefStore stores write operations in memory and prevents persisting them to the user prefs file. The CL also blacklists two preferences from being stored in the in-memory IncognitoPrefStore to fix the regressions mentioned in the bugs. BUG=87191, 84472 TEST=see bug descriptions Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92581

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed comments #

Total comments: 3

Patch Set 3 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+403 lines, -354 lines) Patch
M chrome/browser/content_settings/content_settings_pref_provider_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
A + chrome/browser/prefs/incognito_user_pref_store.h View 1 3 chunks +16 lines, -10 lines 0 comments Download
A chrome/browser/prefs/incognito_user_pref_store.cc View 1 1 chunk +152 lines, -0 lines 0 comments Download
A chrome/browser/prefs/incognito_user_pref_store_unittest.cc View 1 2 1 chunk +217 lines, -0 lines 0 comments Download
D chrome/browser/prefs/overlay_persistent_pref_store.h View 1 chunk +0 lines, -65 lines 0 comments Download
D chrome/browser/prefs/overlay_persistent_pref_store.cc View 1 chunk +0 lines, -120 lines 0 comments Download
D chrome/browser/prefs/overlay_persistent_pref_store_unittest.cc View 1 chunk +0 lines, -143 lines 0 comments Download
M chrome/browser/prefs/pref_service.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/json_pref_store.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/pref_store.h View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
battre
This is a different approach for some regressions due to the introduction of the incognito ...
9 years, 5 months ago (2011-07-13 11:29:13 UTC) #1
Mattias Nissler (ping if slow)
I guess I'm not convinced that whitelisting is better than blacklisting. Do you have any ...
9 years, 5 months ago (2011-07-13 12:15:32 UTC) #2
sky
I'm inclined to go for blacklisting too. I don't have any data to back that ...
9 years, 5 months ago (2011-07-13 14:03:01 UTC) #3
Peter Kasting
I can't tell what you guys are arguing for/against. It sounds like battre meant "blacklist" ...
9 years, 5 months ago (2011-07-13 22:02:05 UTC) #4
battre
Can I consider your statement > I can't tell what you guys are arguing for/against. ...
9 years, 5 months ago (2011-07-13 22:28:32 UTC) #5
Peter Kasting
On 2011/07/13 22:28:32, battre wrote: > Can I consider your statement > as 1 "don't ...
9 years, 5 months ago (2011-07-13 22:43:51 UTC) #6
battre
I have addressed the comments. Mattias, please have a look. Thanks. http://codereview.chromium.org/7342043/diff/1/chrome/browser/prefs/incognito_user_pref_store.cc File chrome/browser/prefs/incognito_user_pref_store.cc (right): ...
9 years, 5 months ago (2011-07-14 12:31:56 UTC) #7
Mattias Nissler (ping if slow)
LGTM with a suggestion that you may choose to ignore. http://codereview.chromium.org/7342043/diff/7001/chrome/browser/prefs/incognito_user_pref_store_unittest.cc File chrome/browser/prefs/incognito_user_pref_store_unittest.cc (right): http://codereview.chromium.org/7342043/diff/7001/chrome/browser/prefs/incognito_user_pref_store_unittest.cc#newcode27 ...
9 years, 5 months ago (2011-07-14 13:47:16 UTC) #8
battre
Thanks http://codereview.chromium.org/7342043/diff/7001/chrome/browser/prefs/incognito_user_pref_store_unittest.cc File chrome/browser/prefs/incognito_user_pref_store_unittest.cc (right): http://codereview.chromium.org/7342043/diff/7001/chrome/browser/prefs/incognito_user_pref_store_unittest.cc#newcode27 chrome/browser/prefs/incognito_user_pref_store_unittest.cc:27: return key == incognito_key; On 2011/07/14 13:47:16, Mattias ...
9 years, 5 months ago (2011-07-14 14:49:56 UTC) #9
commit-bot: I haz the power
9 years, 5 months ago (2011-07-14 14:50:42 UTC) #10
Can't process patch for file chrome/browser/prefs/incognito_user_pref_store.h.
A +

Powered by Google App Engine
This is Rietveld 408576698