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

Issue 9566007: Initial Managed Mode extension API, supporting querying the setting and a stub for enabling the mod… (Closed)

Created:
8 years, 9 months ago by Pam (message me for reviews)
Modified:
8 years, 9 months ago
Reviewers:
Bernhard Bauer, Finnur, sail
CC:
chromium-reviews, Aaron Boodman, rginda+watch_chromium.org, achuith+watch_chromium.org, mihaip+watch_chromium.org
Visibility:
Public.

Description

Initial Managed Mode extension API, supporting querying the setting and a stub for enabling the mode. BUG=115447, 115448 TEST=covered by automated tests (browser_tests --gtest_filter=ExtensionApiTest.ManagedMode*) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125218

Patch Set 1 #

Patch Set 2 : Lint fixes. #

Patch Set 3 : Now with 12.5% more added files (including missing apitest) #

Total comments: 21

Patch Set 4 : Addressing Bernhard's comments #

Total comments: 1

Patch Set 5 : Added static doc and edited JSON descriptions. #

Patch Set 6 : Comment followup + generated doc #

Patch Set 7 : Reformatting + removing test.html #

Patch Set 8 : Reworded 'enabled' and ermoved levelOfControl #

Patch Set 9 : Fixed API test.js #

Total comments: 8

Patch Set 10 : Addressing Finnur's comments, ready to commit #

Patch Set 11 : Updated checkout #

Total comments: 2

Patch Set 12 : #

Patch Set 13 : Updated checkout again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+988 lines, -61 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_managed_mode_api.h View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_managed_mode_api.cc View 1 2 3 4 5 6 7 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_managed_mode_apitest.cc View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_preference_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +20 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_preference_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 15 chunks +58 lines, -52 lines 0 comments Download
M chrome/browser/extensions/extension_preference_api_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_preference_api_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/common_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/experimental.managedMode.json View 1 2 3 4 5 6 7 1 chunk +57 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/docs/experimental.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/docs/experimental.managedMode.html View 1 2 3 4 5 6 7 8 9 1 chunk +570 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/js/api_page_generator.js View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
A chrome/common/extensions/docs/static/experimental.managedMode.html View 1 2 3 4 5 6 7 8 9 1 chunk +81 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_permission_set.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_permission_set.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/managedMode/manifest.json View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/managedMode/test.js View 1 2 3 4 5 6 7 8 9 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Pam (message me for reviews)
Bernhard - please review, thanks Aaron - please review extensions/* as desired for owner approval ...
8 years, 9 months ago (2012-03-01 14:07:27 UTC) #1
Bernhard Bauer
http://codereview.chromium.org/9566007/diff/7001/chrome/browser/extensions/extension_managed_mode_api.cc File chrome/browser/extensions/extension_managed_mode_api.cc (right): http://codereview.chromium.org/9566007/diff/7001/chrome/browser/extensions/extension_managed_mode_api.cc#newcode13 chrome/browser/extensions/extension_managed_mode_api.cc:13: #include "chrome/browser/prefs/pref_service.h" Nit: Remove one empty line here, but ...
8 years, 9 months ago (2012-03-01 16:32:14 UTC) #2
Pam (message me for reviews)
All comments fixed, except as noted below. Please take another look. Thanks, - Pam http://codereview.chromium.org/9566007/diff/7001/chrome/browser/extensions/extension_managed_mode_api.cc ...
8 years, 9 months ago (2012-03-01 20:47:34 UTC) #3
Bernhard Bauer
http://codereview.chromium.org/9566007/diff/7001/chrome/browser/extensions/extension_managed_mode_api.cc File chrome/browser/extensions/extension_managed_mode_api.cc (right): http://codereview.chromium.org/9566007/diff/7001/chrome/browser/extensions/extension_managed_mode_api.cc#newcode39 chrome/browser/extensions/extension_managed_mode_api.cc:39: std::string level_of_control = enabled ? keys::kNotControllable On 2012/03/01 20:47:34, ...
8 years, 9 months ago (2012-03-02 09:23:58 UTC) #4
Pam (message me for reviews)
Finally got the document generator working. Woot! All comments addressed, except the one about levelOfControl ...
8 years, 9 months ago (2012-03-02 12:39:35 UTC) #5
Bernhard Bauer
On 2012/03/02 12:39:35, Pam wrote: > Finally got the document generator working. Woot! > > ...
8 years, 9 months ago (2012-03-02 13:31:09 UTC) #6
Bernhard Bauer
Oh, but LGTM otherwise.
8 years, 9 months ago (2012-03-02 13:31:22 UTC) #7
Pam (message me for reviews)
Thanks. Following our discussion, I've removed levelOfControl until we have any other way for managed ...
8 years, 9 months ago (2012-03-02 15:38:20 UTC) #8
Bernhard Bauer
LGTM still holds.
8 years, 9 months ago (2012-03-02 16:44:56 UTC) #9
Pam (message me for reviews)
Finnur, would you mind taking a look for owners approval? - Pam
8 years, 9 months ago (2012-03-05 09:51:34 UTC) #10
Finnur
LGTM, with nits. I'm assuming here the discussion on whether to add this API to ...
8 years, 9 months ago (2012-03-05 10:45:01 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pam@chromium.org/9566007/23001
8 years, 9 months ago (2012-03-05 14:58:50 UTC) #12
commit-bot: I haz the power
Presubmit check for 9566007-23001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 9 months ago (2012-03-05 14:59:02 UTC) #13
Pam (message me for reviews)
Sailesh, would you please take a look at the profile_manager.cc change and give owners approval ...
8 years, 9 months ago (2012-03-05 15:16:02 UTC) #14
Pam (message me for reviews)
Sailesh, would you please take a look at the profile_manager.cc change and give owners approval ...
8 years, 9 months ago (2012-03-05 15:16:38 UTC) #15
sail
http://codereview.chromium.org/9566007/diff/23001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): http://codereview.chromium.org/9566007/diff/23001/chrome/browser/profiles/profile_manager.cc#newcode688 chrome/browser/profiles/profile_manager.cc:688: DCHECK(!local_state->GetBoolean(prefs::kInManagedMode)); I don't think sprinkling these DCHECKs here is ...
8 years, 9 months ago (2012-03-05 18:41:29 UTC) #16
Pam (message me for reviews)
> http://codereview.chromium.org/9566007/diff/23001/chrome/browser/profiles/profile_manager.cc#newcode688 > chrome/browser/profiles/profile_manager.cc:688: > DCHECK(!local_state->GetBoolean(prefs::kInManagedMode)); > I don't think sprinkling these DCHECKs here is ...
8 years, 9 months ago (2012-03-05 19:14:50 UTC) #17
sail
On 2012/03/05 19:14:50, Pam wrote: > > > http://codereview.chromium.org/9566007/diff/23001/chrome/browser/profiles/profile_manager.cc#newcode688 > > chrome/browser/profiles/profile_manager.cc:688: > > DCHECK(!local_state->GetBoolean(prefs::kInManagedMode)); ...
8 years, 9 months ago (2012-03-05 19:20:16 UTC) #18
sail
profile/* LGTM!
8 years, 9 months ago (2012-03-05 19:20:36 UTC) #19
Pam (message me for reviews)
Thanks, Sailesh. I took both DCHECKs out. Berhnard has been discussing changes to them over ...
8 years, 9 months ago (2012-03-06 14:28:13 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pam@chromium.org/9566007/25001
8 years, 9 months ago (2012-03-06 14:28:27 UTC) #21
commit-bot: I haz the power
Can't apply patch for file chrome/chrome_browser.gypi. While running patch -p0 --forward --force; patching file chrome/chrome_browser.gypi ...
8 years, 9 months ago (2012-03-06 16:04:29 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pam@chromium.org/9566007/26026
8 years, 9 months ago (2012-03-06 18:51:05 UTC) #23
commit-bot: I haz the power
8 years, 9 months ago (2012-03-06 21:00:52 UTC) #24
Change committed as 125218

Powered by Google App Engine
This is Rietveld 408576698