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

Issue 8060017: Ensure that --disable-extensions disables extension prefs from being enacted (Closed)

Created:
9 years, 2 months ago by battre
Modified:
9 years, 2 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, mihaip+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Ensure that --disable-extensions disables extension prefs from being enacted The ExtensionPrefs injects extension controlled preferences into the general PrefService. This was only prevented if individual extensions were disabled but not if all extensions were disabled by the --disable-extensions command-line flag. This CL fixes this. BUG=96766 TEST=no Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=103477

Patch Set 1 #

Patch Set 2 : ... #

Total comments: 1

Patch Set 3 : Addressed mnissler's comments #

Total comments: 4

Patch Set 4 : addressed comments #

Total comments: 2

Patch Set 5 : Split ExtensionPrefs constructor into constructor and Init function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -9 lines) Patch
M chrome/browser/extensions/extension_prefs.h View 1 2 3 4 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 4 2 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_prefs_unittest.cc View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_prefs.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_prefs.cc View 1 2 3 4 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_popup_controller_unittest.mm View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
battre
Could you please review this? Thanks.
9 years, 2 months ago (2011-09-27 18:27:18 UTC) #1
Mattias Nissler (ping if slow)
I put a comment for your consideration. If you decide to not make the change, ...
9 years, 2 months ago (2011-09-28 09:24:51 UTC) #2
battre
On 2011/09/28 09:24:51, Mattias Nissler wrote: > I put a comment for your consideration. If ...
9 years, 2 months ago (2011-09-29 11:33:22 UTC) #3
Mattias Nissler (ping if slow)
LGTM, even if I have put another cleanup suggestion ;) Feel free to decide whether ...
9 years, 2 months ago (2011-09-29 12:20:07 UTC) #4
battre
http://codereview.chromium.org/8060017/diff/5/chrome/browser/extensions/test_extension_prefs.h File chrome/browser/extensions/test_extension_prefs.h (right): http://codereview.chromium.org/8060017/diff/5/chrome/browser/extensions/test_extension_prefs.h#newcode65 chrome/browser/extensions/test_extension_prefs.h:65: // active after calling RecreateExtensionPrefs(). Defaults to false; On ...
9 years, 2 months ago (2011-09-29 14:50:18 UTC) #5
battre
+asargent for OWNERS approval. Antony, could you please have a look at this? Thanks. Dominic
9 years, 2 months ago (2011-09-29 16:29:50 UTC) #6
asargent_no_longer_on_chrome
http://codereview.chromium.org/8060017/diff/11001/chrome/browser/extensions/extension_prefs.cc File chrome/browser/extensions/extension_prefs.cc (right): http://codereview.chromium.org/8060017/diff/11001/chrome/browser/extensions/extension_prefs.cc#newcode238 chrome/browser/extensions/extension_prefs.cc:238: InitPrefStore(extensions_disabled); It is sort of against the style guide ...
9 years, 2 months ago (2011-09-29 18:06:59 UTC) #7
battre
http://codereview.chromium.org/8060017/diff/11001/chrome/browser/extensions/extension_prefs.cc File chrome/browser/extensions/extension_prefs.cc (right): http://codereview.chromium.org/8060017/diff/11001/chrome/browser/extensions/extension_prefs.cc#newcode238 chrome/browser/extensions/extension_prefs.cc:238: InitPrefStore(extensions_disabled); On 2011/09/29 18:06:59, Antony Sargent wrote: > It ...
9 years, 2 months ago (2011-09-29 20:37:47 UTC) #8
asargent_no_longer_on_chrome
Ok, pre-emptive LGTM so you don't get tied up waiting for me.
9 years, 2 months ago (2011-09-29 22:00:14 UTC) #9
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/8060017/13002
9 years, 2 months ago (2011-09-30 12:53:01 UTC) #10
commit-bot: I haz the power
Presubmit check for 8060017-13002 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 2 months ago (2011-09-30 12:53:06 UTC) #11
battre
+mirandac for OWNERS approval for chrome/browser/profiles/
9 years, 2 months ago (2011-09-30 13:01:06 UTC) #12
Miranda Callahan
On 2011/09/30 13:01:06, battre wrote: > +mirandac for OWNERS approval for chrome/browser/profiles/ Profiles LGTM.
9 years, 2 months ago (2011-09-30 13:03:27 UTC) #13
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/8060017/13002
9 years, 2 months ago (2011-09-30 13:04:21 UTC) #14
commit-bot: I haz the power
Try job failure for 8060017-13002 on win_rel for steps "update_scripts, update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=1067 Step "update" is ...
9 years, 2 months ago (2011-09-30 13:58:28 UTC) #15
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/8060017/13002
9 years, 2 months ago (2011-09-30 15:21:00 UTC) #16
commit-bot: I haz the power
9 years, 2 months ago (2011-09-30 16:43:55 UTC) #17
Change committed as 103477

Powered by Google App Engine
This is Rietveld 408576698