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

Issue 9403010: Add support for kiosk mode on the client. Make sure the settings are written in the lockbox. (Closed)

Created:
8 years, 10 months ago by pastarmovj
Modified:
8 years, 10 months ago
CC:
chromium-reviews, binzhao, Joao da Silva
Visibility:
Public.

Description

Add support for kiosk mode on the client. Make sure the settings are written in the lockbox. Propagates the registration mode through the policy subsystem and lock it down in the lockbox. Provides interface to query the values using the EnterpriseInstallAttributes class. BUG=chromium-os:26246 TEST=unit_tests: *Enterprise*,*Policy* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=123471

Patch Set 1 : " #

Total comments: 14

Patch Set 2 : Addressed comments and added more tests. #

Total comments: 22

Patch Set 3 : Made registration fail on missing enrollment type. #

Total comments: 6

Patch Set 4 : Moved the DeviceMode enum to CloudPolicyDataStore. #

Patch Set 5 : Only check and set enrollment_type for device registrations. #

Total comments: 22

Patch Set 6 : Addressed comments and added two more tests and cleaned includes. #

Total comments: 25

Patch Set 7 : Addressed comments. #

Patch Set 8 : Added GetDeviceMode to the BrowserPolicyConnector to make it available to the world. #

Patch Set 9 : Un-broke the DeviceTokenFetcher unit tests. #

Total comments: 2

Patch Set 10 : Addressed nitty nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+409 lines, -70 lines) Patch
M chrome/browser/chromeos/login/login_utils_browsertest.cc View 1 2 3 4 5 6 7 8 9 6 chunks +30 lines, -0 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 4 5 6 7 4 chunks +19 lines, -6 lines 0 comments Download
M chrome/browser/policy/cloud_policy_constants.h View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud_policy_data_store.h View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud_policy_data_store.cc View 1 2 3 4 5 4 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/policy/cloud_policy_subsystem.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/policy/cloud_policy_subsystem_unittest.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/policy/device_policy_cache_unittest.cc View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/policy/device_token_fetcher.h View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/policy/device_token_fetcher.cc View 1 2 3 4 5 6 5 chunks +39 lines, -2 lines 0 comments Download
M chrome/browser/policy/device_token_fetcher_unittest.cc View 1 2 3 4 5 6 7 8 12 chunks +76 lines, -32 lines 0 comments Download
M chrome/browser/policy/enterprise_install_attributes.h View 1 2 3 4 5 5 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/policy/enterprise_install_attributes.cc View 1 2 3 4 5 6 7 8 9 5 chunks +101 lines, -12 lines 0 comments Download
M chrome/browser/policy/enterprise_install_attributes_unittest.cc View 1 2 3 4 5 2 chunks +78 lines, -7 lines 0 comments Download
M chrome/browser/policy/policy_notifier.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
pastarmovj
@Mattias: Can you please review this CL. @Bin,Joao: FYI.
8 years, 10 months ago (2012-02-15 14:43:52 UTC) #1
Mattias Nissler (ping if slow)
http://codereview.chromium.org/9403010/diff/5001/chrome/browser/policy/enterprise_install_attributes.cc File chrome/browser/policy/enterprise_install_attributes.cc (right): http://codereview.chromium.org/9403010/diff/5001/chrome/browser/policy/enterprise_install_attributes.cc#newcode23 chrome/browser/policy/enterprise_install_attributes.cc:23: if (separator_pos != email.npos && separator_pos < email.length()-1) spaces ...
8 years, 10 months ago (2012-02-15 15:32:03 UTC) #2
pastarmovj
Addressed your comments and added a few more tests to ensure we handle migration from ...
8 years, 10 months ago (2012-02-15 17:40:14 UTC) #3
Mattias Nissler (ping if slow)
http://codereview.chromium.org/9403010/diff/12/chrome/browser/policy/device_token_fetcher.cc File chrome/browser/policy/device_token_fetcher.cc (right): http://codereview.chromium.org/9403010/diff/12/chrome/browser/policy/device_token_fetcher.cc#newcode201 chrome/browser/policy/device_token_fetcher.cc:201: } we should do the right thing when there ...
8 years, 10 months ago (2012-02-16 10:36:27 UTC) #4
pastarmovj
PTAL. Please note that I introduced a new error state for the case of missing/unknown ...
8 years, 10 months ago (2012-02-17 13:59:47 UTC) #5
Mattias Nissler (ping if slow)
http://codereview.chromium.org/9403010/diff/9002/chrome/browser/policy/enterprise_install_attributes.cc File chrome/browser/policy/enterprise_install_attributes.cc (right): http://codereview.chromium.org/9403010/diff/9002/chrome/browser/policy/enterprise_install_attributes.cc#newcode79 chrome/browser/policy/enterprise_install_attributes.cc:79: CHECK(device_mode != DEVICE_MODE_UNKNOWN); CHECK_NE http://codereview.chromium.org/9403010/diff/9002/chrome/browser/policy/enterprise_install_attributes.cc#newcode161 chrome/browser/policy/enterprise_install_attributes.cc:161: return DEVICE_MODE_CONSUMER; shouldn't ...
8 years, 10 months ago (2012-02-20 12:22:54 UTC) #6
pastarmovj
PTAL. 1. Addressed your comments. 2. Added two new tests to the DeviceTokenFetcher suite to ...
8 years, 10 months ago (2012-02-20 14:26:30 UTC) #7
Mattias Nissler (ping if slow)
http://codereview.chromium.org/9403010/diff/21005/chrome/browser/policy/browser_policy_connector.h File chrome/browser/policy/browser_policy_connector.h (right): http://codereview.chromium.org/9403010/diff/21005/chrome/browser/policy/browser_policy_connector.h#newcode126 chrome/browser/policy/browser_policy_connector.h:126: Didn't you want to put a comment here saying ...
8 years, 10 months ago (2012-02-21 10:37:45 UTC) #8
pastarmovj
Addressed comments. http://codereview.chromium.org/9403010/diff/21005/chrome/browser/policy/browser_policy_connector.h File chrome/browser/policy/browser_policy_connector.h (right): http://codereview.chromium.org/9403010/diff/21005/chrome/browser/policy/browser_policy_connector.h#newcode126 chrome/browser/policy/browser_policy_connector.h:126: On 2012/02/21 10:37:46, Mattias Nissler wrote: > ...
8 years, 10 months ago (2012-02-21 14:57:07 UTC) #9
Mattias Nissler (ping if slow)
LGTM with nits. http://codereview.chromium.org/9403010/diff/21005/chrome/browser/policy/enterprise_install_attributes.cc File chrome/browser/policy/enterprise_install_attributes.cc (right): http://codereview.chromium.org/9403010/diff/21005/chrome/browser/policy/enterprise_install_attributes.cc#newcode198 chrome/browser/policy/enterprise_install_attributes.cc:198: registration_mode_ = DEVICE_MODE_CONSUMER; On 2012/02/21 14:57:08, ...
8 years, 10 months ago (2012-02-23 10:57:26 UTC) #10
pastarmovj
8 years, 10 months ago (2012-02-24 12:47:50 UTC) #11
Fixed the nitty nit and proceeding to commit.

http://codereview.chromium.org/9403010/diff/29005/chrome/browser/policy/enter...
File chrome/browser/policy/enterprise_install_attributes.cc (right):

http://codereview.chromium.org/9403010/diff/29005/chrome/browser/policy/enter...
chrome/browser/policy/enterprise_install_attributes.cc:186: // the code, when
those new attributes were added.
On 2012/02/23 10:57:27, Mattias Nissler wrote:
> s/when/before/
> 
> Also s/those/these/ (twice)

Done.

Powered by Google App Engine
This is Rietveld 408576698