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

Issue 184043024: Limit scope of settings API configuration and proxy permission (Closed)

Created:
6 years, 9 months ago by battre
Modified:
6 years, 9 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, arv+watch_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Limit scope of settings API configuration and proxy permission The proxy API permission gave an extension super power: It gained complete incognito permission. This was introduced in r210766 and is reverted here. The reason for r210766 was that a proxy setting for regular mode was propagated into incognito mode. This propagation was based on the assumption that incognito mode inherits most settings from regular mode but has caused lots of confusion and several bug reports. With this CL, extensions can only affect settings of incognito mode if they have incognito permission. BUG=346125, 290423 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256362

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move incognito permission test from ChromeExtensionsBrowserClient to ExtensionPrefs #

Total comments: 12

Patch Set 3 : Fix failing unit test #

Patch Set 4 : Addressed Bernhard's comments #

Total comments: 2

Patch Set 5 : Addressed Bernhard's comment #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -69 lines) Patch
M chrome/browser/extensions/api/preference/preference_api.cc View 1 1 chunk +3 lines, -1 line 2 comments Download
M chrome/browser/extensions/api/preference/preference_api_prefs_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/proxy/proxy_apitest.cc View 4 chunks +34 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/extension_util.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/resources/extensions/extension_list.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M extensions/browser/extension_pref_value_map.h View 1 4 chunks +11 lines, -4 lines 0 comments Download
M extensions/browser/extension_pref_value_map.cc View 1 2 3 4 7 chunks +28 lines, -1 line 3 comments Download
M extensions/browser/extension_pref_value_map_unittest.cc View 1 2 3 15 chunks +89 lines, -48 lines 0 comments Download
M extensions/browser/extension_prefs.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M extensions/common/extension.h View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/common/extension.cc View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
battre
Hi Bernhard, could you please review this CL? Thanks, Dominic
6 years, 9 months ago (2014-03-04 09:30:20 UTC) #1
battre
https://codereview.chromium.org/184043024/diff/1/extensions/browser/extension_pref_value_map.cc File extensions/browser/extension_pref_value_map.cc (right): https://codereview.chromium.org/184043024/diff/1/extensions/browser/extension_pref_value_map.cc#newcode136 extensions/browser/extension_pref_value_map.cc:136: ext_id, context_); This seems to create a recursive initialization... ...
6 years, 9 months ago (2014-03-04 09:45:54 UTC) #2
battre
https://codereview.chromium.org/184043024/diff/1/extensions/browser/extension_pref_value_map.cc File extensions/browser/extension_pref_value_map.cc (right): https://codereview.chromium.org/184043024/diff/1/extensions/browser/extension_pref_value_map.cc#newcode136 extensions/browser/extension_pref_value_map.cc:136: ext_id, context_); On 2014/03/04 09:45:54, battre wrote: > This ...
6 years, 9 months ago (2014-03-04 10:29:03 UTC) #3
battre
+kalman. Could you please take a look at the extensions related parts? In particular you ...
6 years, 9 months ago (2014-03-04 17:22:49 UTC) #4
Bernhard Bauer
https://codereview.chromium.org/184043024/diff/40001/chrome/common/extensions/api/types.json File chrome/common/extensions/api/types.json (right): https://codereview.chromium.org/184043024/diff/40001/chrome/common/extensions/api/types.json#newcode49 chrome/common/extensions/api/types.json:49: "description": "One of<ul><li><var>not_controllable</var>: cannot be controlled by this extension ...
6 years, 9 months ago (2014-03-04 17:31:18 UTC) #5
battre
Please take another look. https://codereview.chromium.org/184043024/diff/40001/chrome/common/extensions/api/types.json File chrome/common/extensions/api/types.json (right): https://codereview.chromium.org/184043024/diff/40001/chrome/common/extensions/api/types.json#newcode49 chrome/common/extensions/api/types.json:49: "description": "One of<ul><li><var>not_controllable</var>: cannot be ...
6 years, 9 months ago (2014-03-05 08:34:35 UTC) #6
Bernhard Bauer
https://codereview.chromium.org/184043024/diff/100001/extensions/browser/extension_pref_value_map.cc File extensions/browser/extension_pref_value_map.cc (right): https://codereview.chromium.org/184043024/diff/100001/extensions/browser/extension_pref_value_map.cc#newcode255 extensions/browser/extension_pref_value_map.cc:255: NOTREACHED(); You are handling a DCHECK failure here, which ...
6 years, 9 months ago (2014-03-05 09:05:34 UTC) #7
battre
Thanks. https://codereview.chromium.org/184043024/diff/100001/extensions/browser/extension_pref_value_map.cc File extensions/browser/extension_pref_value_map.cc (right): https://codereview.chromium.org/184043024/diff/100001/extensions/browser/extension_pref_value_map.cc#newcode255 extensions/browser/extension_pref_value_map.cc:255: NOTREACHED(); On 2014/03/05 09:05:35, Bernhard Bauer wrote: > ...
6 years, 9 months ago (2014-03-05 12:05:44 UTC) #8
Bernhard Bauer
LGTM!
6 years, 9 months ago (2014-03-05 12:18:19 UTC) #9
not at google - send to devlin
lgtm but I realised by the end of this that I'm not confident I can ...
6 years, 9 months ago (2014-03-05 17:14:05 UTC) #10
battre
https://codereview.chromium.org/184043024/diff/120001/chrome/browser/extensions/api/preference/preference_api.cc File chrome/browser/extensions/api/preference/preference_api.cc (right): https://codereview.chromium.org/184043024/diff/120001/chrome/browser/extensions/api/preference/preference_api.cc#newcode456 chrome/browser/extensions/api/preference/preference_api.cc:456: bool is_incognito_enabled = prefs->IsIncognitoEnabled(*extension_id); On 2014/03/05 17:14:06, kalman wrote: ...
6 years, 9 months ago (2014-03-05 17:38:43 UTC) #11
battre
Yoyo, could you please take a look at this? Thanks, Dominic https://codereview.chromium.org/184043024/diff/120001/extensions/browser/extension_pref_value_map.cc File extensions/browser/extension_pref_value_map.cc (right): ...
6 years, 9 months ago (2014-03-10 13:50:11 UTC) #12
Yoyo Zhou
LGTM https://codereview.chromium.org/184043024/diff/120001/extensions/browser/extension_pref_value_map.cc File extensions/browser/extension_pref_value_map.cc (right): https://codereview.chromium.org/184043024/diff/120001/extensions/browser/extension_pref_value_map.cc#newcode177 extensions/browser/extension_pref_value_map.cc:177: NotifyPrefValueChanged(keys); On 2014/03/10 13:50:11, battre wrote: > On ...
6 years, 9 months ago (2014-03-10 22:33:25 UTC) #13
battre
The CQ bit was checked by battre@chromium.org
6 years, 9 months ago (2014-03-11 16:19:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/184043024/120001
6 years, 9 months ago (2014-03-11 16:29:21 UTC) #15
commit-bot: I haz the power
6 years, 9 months ago (2014-03-12 00:29:18 UTC) #16
Message was sent while issue was closed.
Change committed as 256362

Powered by Google App Engine
This is Rietveld 408576698