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

Issue 742513006: Add ManagementMode enum and GetManagementMode(). (Closed)

Created:
6 years ago by davidyu
Modified:
6 years ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add ManagementMode enum and GetManagementMode(). GetManagementMode() checks PolicyData to see if the device is enterprise-managed, etc. based on the management_mode field and request_token if management_mode is not set. Also, refactor EnrollmentHandlerChromeOS to use ManagementMode. BUG=chromium:436026 TEST=unit_tests Committed: https://crrev.com/8edac011a427f0c0180c17a5437b642a3ad016c5 Cr-Commit-Position: refs/heads/master@{#306124}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 16

Patch Set 4 : #

Patch Set 5 : Rebase. #

Patch Set 6 : Add missing POLICY_EXPORT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -51 lines) Patch
M chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/consumer_enrollment_handler.cc View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_initializer.h View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc View 1 2 3 4 3 chunks +18 lines, -18 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc View 1 2 3 4 6 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service.cc View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/enrollment_handler_chromeos.h View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc View 1 2 3 4 6 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/policy/fake_device_cloud_policy_initializer.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/fake_device_cloud_policy_initializer.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/settings/device_settings_provider.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M components/components_tests.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_constants.h View 1 2 3 4 5 2 chunks +20 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_constants.cc View 1 2 3 2 chunks +26 lines, -0 lines 0 comments Download
A components/policy/core/common/cloud/cloud_policy_constants_unittest.cc View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
davidyu
I found three places that check the existence of request token to decide if the ...
6 years ago (2014-11-26 03:36:28 UTC) #2
Mattias Nissler (ping if slow)
https://codereview.chromium.org/742513006/diff/1/chrome/browser/chromeos/policy/policy_util.h File chrome/browser/chromeos/policy/policy_util.h (right): https://codereview.chromium.org/742513006/diff/1/chrome/browser/chromeos/policy/policy_util.h#newcode16 chrome/browser/chromeos/policy/policy_util.h:16: class PolicyUtil { We should just make helper function ...
6 years ago (2014-11-26 13:52:42 UTC) #3
davidyu
https://codereview.chromium.org/742513006/diff/1/chrome/browser/chromeos/policy/policy_util.h File chrome/browser/chromeos/policy/policy_util.h (right): https://codereview.chromium.org/742513006/diff/1/chrome/browser/chromeos/policy/policy_util.h#newcode16 chrome/browser/chromeos/policy/policy_util.h:16: class PolicyUtil { On 2014/11/26 13:52:42, Mattias Nissler wrote: ...
6 years ago (2014-11-27 04:00:35 UTC) #4
Mattias Nissler (ping if slow)
https://codereview.chromium.org/742513006/diff/20001/chrome/browser/chromeos/policy/policy_util.h File chrome/browser/chromeos/policy/policy_util.h (right): https://codereview.chromium.org/742513006/diff/20001/chrome/browser/chromeos/policy/policy_util.h#newcode16 chrome/browser/chromeos/policy/policy_util.h:16: GetManagementMode(const enterprise_management::PolicyData& policy_data); Two suggestions: 1. I think moving ...
6 years ago (2014-11-27 08:37:31 UTC) #5
davidyu
https://codereview.chromium.org/742513006/diff/20001/chrome/browser/chromeos/policy/policy_util.h File chrome/browser/chromeos/policy/policy_util.h (right): https://codereview.chromium.org/742513006/diff/20001/chrome/browser/chromeos/policy/policy_util.h#newcode16 chrome/browser/chromeos/policy/policy_util.h:16: GetManagementMode(const enterprise_management::PolicyData& policy_data); On 2014/11/27 08:37:31, Mattias Nissler wrote: ...
6 years ago (2014-11-27 10:04:09 UTC) #6
Mattias Nissler (ping if slow)
LGTM w/ nits. https://codereview.chromium.org/742513006/diff/40001/components/policy/core/common/cloud/cloud_policy_constants.h File components/policy/core/common/cloud/cloud_policy_constants.h (right): https://codereview.chromium.org/742513006/diff/40001/components/policy/core/common/cloud/cloud_policy_constants.h#newcode138 components/policy/core/common/cloud/cloud_policy_constants.h:138: // An enum that indicates if ...
6 years ago (2014-11-28 09:21:18 UTC) #7
bartfab (slow)
lgtm https://codereview.chromium.org/742513006/diff/40001/chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc File chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc (right): https://codereview.chromium.org/742513006/diff/40001/chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc#newcode233 chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc:233: DeviceManagementService* service = NULL; Nit: s/NULL/nullptr/ https://codereview.chromium.org/742513006/diff/40001/components/policy/core/common/cloud/cloud_policy_constants.h File ...
6 years ago (2014-11-28 13:56:54 UTC) #8
davidyu
https://codereview.chromium.org/742513006/diff/40001/chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc File chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc (right): https://codereview.chromium.org/742513006/diff/40001/chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc#newcode233 chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc:233: DeviceManagementService* service = NULL; On 2014/11/28 13:56:53, bartfab wrote: ...
6 years ago (2014-11-29 01:50:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/742513006/60001
6 years ago (2014-11-29 01:53:10 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/97903) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/87795) android_aosp ...
6 years ago (2014-11-29 01:56:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/742513006/80001
6 years ago (2014-11-29 02:37:31 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/2857)
6 years ago (2014-11-29 02:54:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/742513006/100001
6 years ago (2014-11-29 14:04:33 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years ago (2014-11-29 14:45:34 UTC) #20
commit-bot: I haz the power
6 years ago (2014-11-29 14:46:41 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/8edac011a427f0c0180c17a5437b642a3ad016c5
Cr-Commit-Position: refs/heads/master@{#306124}

Powered by Google App Engine
This is Rietveld 408576698