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

Issue 10542023: Disable modifying extensions when in managed mode. (Closed)

Created:
8 years, 6 months ago by Pam (message me for reviews)
Modified:
8 years, 6 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, dyu1, Nirnimesh, Aaron Boodman, anantha, arv (Not doing code reviews), oshima+watch_chromium.org, dennis_jeffrey, stevenjb+watch_chromium.org
Visibility:
Public.

Description

Disable modifying extensions when in managed mode. Consolidate yellow banners on Extensions and Options pages. Add managed mode as an extensions::ManagementPolicy::Provider. Managed mode prohibits installing, uninstalling, enabling, or disabling extensions, both in the UI and in the back end. Also remove links to the web store, as well as optional controls (options, incognito, reload, etc.). BUG=117987 TEST=unit tests (for managed mode methods); manual: verify that chrome://extensions UI is disabled in managed mode; manual: launch in managed mode and verify that managed mode can be disabled Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=143960

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Now with tests\! #

Patch Set 4 : Address Bernhard's comments #

Patch Set 5 : Fix compile #

Patch Set 6 : Change SetInManagedMode and restore (renamed) GetDebugPolicyProviderName #

Patch Set 7 : Improve/fix InitImpl() #

Total comments: 18

Patch Set 8 : Addressing Bernhard's and Pat's comments #

Total comments: 4

Patch Set 9 : Bernhard's comments #

Total comments: 3

Patch Set 10 : More comment followup #

Patch Set 11 : Added missing CSS file #

Total comments: 4

Patch Set 12 : Fixed Evan's nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -109 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_managed_mode_apitest.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/extensions/management_policy.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/management_policy.cc View 1 2 3 4 5 6 7 3 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/extensions/test_management_policy.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/test_management_policy.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/managed_mode.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +36 lines, -5 lines 0 comments Download
M chrome/browser/managed_mode.cc View 1 2 3 4 5 6 7 8 11 chunks +78 lines, -19 lines 0 comments Download
M chrome/browser/managed_mode_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +27 lines, -6 lines 0 comments Download
M chrome/browser/resources/extensions/extensions.css View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/resources/extensions/extensions.html View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/resources/extensions/extensions.js View 1 2 3 4 5 6 7 1 chunk +14 lines, -4 lines 0 comments Download
M chrome/browser/resources/options2/chromeos/internet_detail.html View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/options2/options.html View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/options2/options_page.css View 1 2 3 4 5 6 7 1 chunk +0 lines, -44 lines 0 comments Download
M chrome/browser/resources/options2/options_page.js View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/uber/uber_shared.css View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +45 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.cc View 1 2 3 4 5 6 7 6 chunks +19 lines, -4 lines 0 comments Download
M chrome/test/functional/policy_prefs_ui.py View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Pam (message me for reviews)
Bernhard: please review. Pat: remember when I asked you how to get the banner displaying ...
8 years, 6 months ago (2012-06-12 12:38:47 UTC) #1
Bernhard Bauer
http://codereview.chromium.org/10542023/diff/8025/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/10542023/diff/8025/chrome/app/generated_resources.grd#newcode4410 chrome/app/generated_resources.grd:4410: + <message name="IDS_EXTENSION_CANT_MODIFY_MANAGED_MODE" desc="Error message when a user tries ...
8 years, 6 months ago (2012-06-12 12:55:21 UTC) #2
Pam (message me for reviews)
Thanks. I've implemented all but one of your suggestions. See the one remaining below, and ...
8 years, 6 months ago (2012-06-15 13:27:07 UTC) #3
Bernhard Bauer
Did you delete the old patch set? I don't see them anymore, and the comment ...
8 years, 6 months ago (2012-06-15 13:45:11 UTC) #4
Pam (message me for reviews)
On 2012/06/15 13:45:11, Bernhard Bauer wrote: > Did you delete the old patch set? I ...
8 years, 6 months ago (2012-06-15 15:48:18 UTC) #5
Patrick Dubroy
http://codereview.chromium.org/10542023/diff/12037/chrome/browser/resources/extensions/extensions.html File chrome/browser/resources/extensions/extensions.html (right): http://codereview.chromium.org/10542023/diff/12037/chrome/browser/resources/extensions/extensions.html#newcode53 chrome/browser/resources/extensions/extensions.html:53: <div id="dev-controls"> Why aren't you using hidden anymore? http://codereview.chromium.org/10542023/diff/12037/chrome/browser/resources/extensions/extensions.js ...
8 years, 6 months ago (2012-06-18 12:13:01 UTC) #6
Bernhard Bauer
http://codereview.chromium.org/10542023/diff/12037/chrome/browser/managed_mode.cc File chrome/browser/managed_mode.cc (right): http://codereview.chromium.org/10542023/diff/12037/chrome/browser/managed_mode.cc#newcode136 chrome/browser/managed_mode.cc:136: return "Managed Mode"; Is the compiler smart enough to ...
8 years, 6 months ago (2012-06-18 13:41:05 UTC) #7
Pam (message me for reviews)
Thanks for the reviews. Everything's done, except as noted below. Please take another look. - ...
8 years, 6 months ago (2012-06-18 18:26:00 UTC) #8
Bernhard Bauer
http://codereview.chromium.org/10542023/diff/12043/chrome/browser/managed_mode.cc File chrome/browser/managed_mode.cc (right): http://codereview.chromium.org/10542023/diff/12043/chrome/browser/managed_mode.cc#newcode252 chrome/browser/managed_mode.cc:252: DCHECK(!managed_profile_); Does that work for the case where we ...
8 years, 6 months ago (2012-06-19 10:01:36 UTC) #9
Pam (message me for reviews)
Thanks, Bernhard; here's another go. - Pam http://codereview.chromium.org/10542023/diff/12043/chrome/browser/managed_mode.cc File chrome/browser/managed_mode.cc (right): http://codereview.chromium.org/10542023/diff/12043/chrome/browser/managed_mode.cc#newcode252 chrome/browser/managed_mode.cc:252: DCHECK(!managed_profile_); On ...
8 years, 6 months ago (2012-06-19 12:56:05 UTC) #10
Pam (message me for reviews)
http://codereview.chromium.org/10542023/diff/38001/chrome/browser/managed_mode.cc File chrome/browser/managed_mode.cc (right): http://codereview.chromium.org/10542023/diff/38001/chrome/browser/managed_mode.cc#newcode252 chrome/browser/managed_mode.cc:252: DCHECK(!managed_profile_ || managed_profile_ == newly_managed_profile); I'll remove the extra ...
8 years, 6 months ago (2012-06-19 12:58:48 UTC) #11
Bernhard Bauer
LGTM with one last thing for the test: http://codereview.chromium.org/10542023/diff/38001/chrome/browser/managed_mode_unittest.cc File chrome/browser/managed_mode_unittest.cc (right): http://codereview.chromium.org/10542023/diff/38001/chrome/browser/managed_mode_unittest.cc#newcode46 chrome/browser/managed_mode_unittest.cc:46: DCHECK(!managed_profile_ ...
8 years, 6 months ago (2012-06-19 13:01:04 UTC) #12
Patrick Dubroy
http://codereview.chromium.org/10542023/diff/12037/chrome/browser/resources/options2/chromeos/internet_detail.html File chrome/browser/resources/options2/chromeos/internet_detail.html (right): http://codereview.chromium.org/10542023/diff/12037/chrome/browser/resources/options2/chromeos/internet_detail.html#newcode457 chrome/browser/resources/options2/chromeos/internet_detail.html:457: <span id="banner-text" class="main-page-banner-text"></span> On 2012/06/18 18:26:00, Pam wrote: > ...
8 years, 6 months ago (2012-06-19 13:01:52 UTC) #13
Pam (message me for reviews)
Thanks again. Pat, please take another look. - Pam http://codereview.chromium.org/10542023/diff/12037/chrome/browser/resources/options2/chromeos/internet_detail.html File chrome/browser/resources/options2/chromeos/internet_detail.html (right): http://codereview.chromium.org/10542023/diff/12037/chrome/browser/resources/options2/chromeos/internet_detail.html#newcode457 chrome/browser/resources/options2/chromeos/internet_detail.html:457: ...
8 years, 6 months ago (2012-06-19 20:37:45 UTC) #14
Patrick Dubroy
HTML, JS, & CSS parts LGTM. On 2012/06/19 20:37:45, Pam wrote: > Thanks again. Pat, ...
8 years, 6 months ago (2012-06-20 09:11:34 UTC) #15
Pam (message me for reviews)
Evan, please review for OWNERS approval. Specifically, chrome/browser/resources/options2/* chrome/browser/ui/webui/* chrome/browser/resources/* Thanks, - Pam
8 years, 6 months ago (2012-06-20 20:56:51 UTC) #16
Evan Stade
lgtm http://codereview.chromium.org/10542023/diff/35006/chrome/browser/resources/extensions/extensions.html File chrome/browser/resources/extensions/extensions.html (right): http://codereview.chromium.org/10542023/diff/35006/chrome/browser/resources/extensions/extensions.html#newcode49 chrome/browser/resources/extensions/extensions.html:49: i18n-content="extensionSettingsManagedMode"></span> 4 indent http://codereview.chromium.org/10542023/diff/35006/chrome/browser/resources/uber/uber_shared.css File chrome/browser/resources/uber/uber_shared.css (right): http://codereview.chromium.org/10542023/diff/35006/chrome/browser/resources/uber/uber_shared.css#newcode122 ...
8 years, 6 months ago (2012-06-20 21:27:35 UTC) #17
Pam (message me for reviews)
http://codereview.chromium.org/10542023/diff/35006/chrome/browser/resources/uber/uber_shared.css File chrome/browser/resources/uber/uber_shared.css (right): http://codereview.chromium.org/10542023/diff/35006/chrome/browser/resources/uber/uber_shared.css#newcode153 chrome/browser/resources/uber/uber_shared.css:153: background-image: url('chrome://theme/IDR_MANAGED'); On 2012/06/20 21:27:35, Evan Stade wrote: > ...
8 years, 6 months ago (2012-06-21 16:38:13 UTC) #18
Evan Stade
On 2012/06/21 16:38:13, Pam wrote: > http://codereview.chromium.org/10542023/diff/35006/chrome/browser/resources/uber/uber_shared.css > File chrome/browser/resources/uber/uber_shared.css (right): > > http://codereview.chromium.org/10542023/diff/35006/chrome/browser/resources/uber/uber_shared.css#newcode153 > ...
8 years, 6 months ago (2012-06-21 18:35:43 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pam@chromium.org/10542023/57001
8 years, 6 months ago (2012-06-21 20:20:55 UTC) #20
commit-bot: I haz the power
Try job failure for 10542023-57001 on win_rel for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=39463 Step "update" is always ...
8 years, 6 months ago (2012-06-21 21:06:27 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pam@chromium.org/10542023/57001
8 years, 6 months ago (2012-06-25 17:28:42 UTC) #22
commit-bot: I haz the power
8 years, 6 months ago (2012-06-25 18:28:27 UTC) #23
Change committed as 143960

Powered by Google App Engine
This is Rietveld 408576698