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

Issue 6869042: Add immutable settings checks when handling policy. (Closed)

Created:
9 years, 8 months ago by Mattias Nissler (ping if slow)
Modified:
9 years, 7 months ago
Reviewers:
kmixter1, pastarmovj
CC:
chromium-reviews
Visibility:
Public.

Description

Add immutable settings checks when handling policy. When receiving device policy from the server, make sure that the device is an enterprise device and the policy information is meant for the user who registered the device. While at it, move all the enterprise-related install attributes checking to a helper. BUG=chromium-os:14197 TEST=unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81932

Patch Set 1 #

Patch Set 2 : Add unit tests #

Total comments: 4

Patch Set 3 : rebase, address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+443 lines, -133 lines) Patch
M chrome/browser/chromeos/cros/cryptohome_library.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/enterprise_enrollment_screen.cc View 1 2 2 chunks +26 lines, -72 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.h View 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 3 chunks +19 lines, -13 lines 0 comments Download
M chrome/browser/policy/device_policy_cache.h View 4 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/policy/device_policy_cache.cc View 1 2 4 chunks +33 lines, -1 line 0 comments Download
M chrome/browser/policy/device_policy_cache_unittest.cc View 5 chunks +100 lines, -36 lines 0 comments Download
A chrome/browser/policy/enterprise_install_attributes.h View 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/browser/policy/enterprise_install_attributes.cc View 1 1 chunk +112 lines, -0 lines 0 comments Download
A chrome/browser/policy/enterprise_install_attributes_unittest.cc View 1 1 chunk +55 lines, -0 lines 0 comments Download
M chrome/browser/policy/proto/device_management_backend.proto View 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Mattias Nissler (ping if slow)
This is a first stab. Feel free to take a look, I'll finalize on Monday.
9 years, 8 months ago (2011-04-16 15:10:06 UTC) #1
kmixter1
Generally looks good to me. On Sat, Apr 16, 2011 at 8:10 AM, <mnissler@chromium.org> wrote: ...
9 years, 8 months ago (2011-04-17 06:28:44 UTC) #2
pastarmovj
Some minor comments for now. Will have a thorough view at it tomorrow again but ...
9 years, 8 months ago (2011-04-17 15:20:46 UTC) #3
Mattias Nissler (ping if slow)
Good to go? http://codereview.chromium.org/6869042/diff/2001/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc File chrome/browser/chromeos/login/enterprise_enrollment_screen.cc (right): http://codereview.chromium.org/6869042/diff/2001/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc#newcode238 chrome/browser/chromeos/login/enterprise_enrollment_screen.cc:238: LOG(WARNING) << "Install Attributesj is not ...
9 years, 8 months ago (2011-04-18 09:56:35 UTC) #4
pastarmovj
9 years, 8 months ago (2011-04-18 10:03:33 UTC) #5
LGTM!

Powered by Google App Engine
This is Rietveld 408576698