chromium/src/chrome/browser/policy/proto.git
2 days agoWire the device requisition parameter for enterprise enrollment. master
mnissler@chromium.org [Fri, 17 May 2013 16:32:50 +0000 (16:32 +0000)]
Wire the device requisition parameter for enterprise enrollment.

Add a new parameter for device management registration requests that
indicates to the server an intended purpose / mode for the device. Wire
the parameter for device-enrollment to pass the requisition parameter
from the Kiosk manifest.

BUG=chromium:238655
TEST=Unit tests, enroll a device with kiosk manifest present and observer requisition parameter being passed to the server.

Review URL: https://chromiumcodereview.appspot.com/14843009

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@200822 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

6 days agoNew policy to enable/disable HTTP-based downloads.
jaysri@chromium.org [Mon, 13 May 2013 10:36:42 +0000 (10:36 +0000)]
New policy to enable/disable HTTP-based downloads.

This is required as a safety net before we rollout HTTP to everyone in the
stable-channel.

BUG=chromium:235562
TEST=None

Review URL: https://chromiumcodereview.appspot.com/14715019

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@199696 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

12 days agoActually deprecate DeviceLocalAccountInfoProto.id
mnissler@chromium.org [Tue, 7 May 2013 12:51:32 +0000 (12:51 +0000)]
Actually deprecate DeviceLocalAccountInfoProto.id

I made the original device policy change without the rename for
backwards compatibility. This commit now does the rename.

BUG=chromium:216359
TEST=compiles and passes tests

Review URL: https://codereview.chromium.org/14885008

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@198697 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 weeks agoPut Kiosk App parameters into device settings.
mnissler@chromium.org [Thu, 2 May 2013 11:08:44 +0000 (11:08 +0000)]
Put Kiosk App parameters into device settings.

Remove the existing Kiosk App loading logic that presisted data in
local_state and replace it by code that reads/writes from/to device
settings. We're now using the existing device-local accounts users list,
which is also one step towards handling kiosk apps within the standard
login/user framework.

BUG=chromium:216359
TEST=Configure Kiosk App in device settings, observe it showing up on the login screen.

Review URL: https://codereview.chromium.org/14306004

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@197892 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 weeks agoModify the enterprise enrollment flow to fetch an optional device robot api token...
davidroche@chromium.org [Mon, 29 Apr 2013 17:51:49 +0000 (17:51 +0000)]
Modify the enterprise enrollment flow to fetch an optional device robot api token from the policy server.  This token will be stored in the device's Local State for use by Cloud Print across all profiles (including Guest and Public Sessions).  The new steps that fetch the token during enrollment are optional, so that enrollment will still succeed if a policy server doesn't support robot api tokens.

BUG=164606

Review URL: https://chromiumcodereview.appspot.com/12538009

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@197075 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

3 weeks agoMove proto files back into chrome/browser/policy/proto
mnissler@chromium.org [Fri, 26 Apr 2013 11:13:41 +0000 (11:13 +0000)]
Move proto files back into chrome/browser/policy/proto

The chrome/browser/policy/proto.git repo was broken due to the moves,
and pulling proto files from several paths in the Chrome tree into the
Chrome OS build adds complexity. Hence, move back the proto files to
chrome/browser/policy/proto/{cloud,chromeos}.

BUG=None
TEST=Compiles and passes tests.
TBR=sky@chromium.org, nkostylev@chromium.org

Review URL: https://codereview.chromium.org/14008005

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@196698 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 months agoIntroduce the DeviceStartUpFlags device policy.
pastarmovj@google.com [Thu, 14 Mar 2013 09:13:21 +0000 (09:13 +0000)]
Introduce the DeviceStartUpFlags device policy.

First step towards moving system-wide flags from local state to signed settings.

BUG=chromium-os:39251
TEST=policy consistency tests pass.

Review URL: https://codereview.chromium.org/12728009

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@188031 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 months agoRevert 186837 "Move pref backing up flags from local state to de..."
pastarmovj@google.com [Wed, 13 Mar 2013 17:05:49 +0000 (17:05 +0000)]
Revert 186837 "Move pref backing up flags from local state to de..."

NOTE: Will recommit once session manager can handle flags for us.

Move pref backing up flags from local state to device settings on ChromeOS.

BUG=chromium:18331
TEST=Existing unit and browser tests should pass.

Review URL: https://chromiumcodereview.appspot.com/12452003

TBR=pastarmovj@chromium.org
Review URL: https://codereview.chromium.org/12728008

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@187883 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 months agoMove pref backing up flags from local state to device settings on ChromeOS.
pastarmovj@chromium.org [Fri, 8 Mar 2013 01:18:02 +0000 (01:18 +0000)]
Move pref backing up flags from local state to device settings on ChromeOS.

BUG=chromium-os:39250
TEST=Existing unit and browser tests should pass.

Review URL: https://chromiumcodereview.appspot.com/12452003

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@186837 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 months agoIgnoring the timezone policy if it is set to an empty string.
pneubeck@chromium.org [Tue, 19 Feb 2013 12:42:07 +0000 (12:42 +0000)]
Ignoring the timezone policy if it is set to an empty string.

BUG=176796
TEST=Change timezone as a user, then set timezone device policy to empty string and ensure that it doesn't affect the current timezone.

Review URL: https://chromiumcodereview.appspot.com/12300016

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@183206 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

3 months agoDisable/enable echo for enterprise device.
oscarpan@google.com [Sun, 10 Feb 2013 14:49:13 +0000 (14:49 +0000)]
Disable/enable echo for enterprise device.

Create a new policy to controll disable/enable Echo and make the policy value
avaialbe to Echo extension.

BUG=chromium-os:38500
TEST=unittest and manually check the flow is working.

Review URL: https://chromiumcodereview.appspot.com/12147004

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@181649 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

3 months agoAdd DeviceRegisterRequest.BROWSER and use it for chrome.
atwilson@chromium.org [Sun, 3 Feb 2013 19:29:41 +0000 (19:29 +0000)]
Add DeviceRegisterRequest.BROWSER and use it for chrome.

BUG=173108

Review URL: https://chromiumcodereview.appspot.com/12082102

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@180316 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

3 months agoRemove old cloud policy code.
mnissler@chromium.org [Wed, 23 Jan 2013 12:15:27 +0000 (12:15 +0000)]
Remove old cloud policy code.

The old framework has been abandoned in favor of a more flexible rewrite
which is already being used for the desktop cloud policy implementation.
Chrome OS has switched over with M25, so it's time to remove the old
code.

BUG=chromium:108928
TEST=Still compiles and passes tests.

Review URL: https://chromiumcodereview.appspot.com/11946017

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@178283 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

3 months agoAdded chrome_extension_policy.proto.
joaodasilva@chromium.org [Fri, 18 Jan 2013 14:21:28 +0000 (14:21 +0000)]
Added chrome_extension_policy.proto.

This protobuf defines the messages used to fetch policy for extensions from the cloud policy server.

BUG=163318

Review URL: https://chromiumcodereview.appspot.com/11878021

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@177669 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

4 months agoRead CrOS install attributes cache on startup.
mnissler@chromium.org [Fri, 18 Jan 2013 00:27:53 +0000 (00:27 +0000)]
Read CrOS install attributes cache on startup.

This works around slow startup of cryptohomed, which results in Chrome being
unable to read install attributes at startup, which in turn renders
enterprise-devices to appear non-enterprise on the login screen.

BUG=chromium-os:37367
TEST=Manual: Enroll device, reboot, check enrollment is signaled on login screen.

Review URL: https://chromiumcodereview.appspot.com/11734005

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@177547 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

5 months agoAdd support for public account policy to CloudPolicyClient.
mnissler@chromium.org [Tue, 4 Dec 2012 17:36:00 +0000 (17:36 +0000)]
Add support for public account policy to CloudPolicyClient.

BUG=chromium:152937
TEST=Manual, user policy still works.

Review URL: https://codereview.chromium.org/11434053

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@170991 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

5 months agoAdded the settings_entity_id field to PolicyFetchRequest and PolicyData protobufs.
joaodasilva@chromium.org [Thu, 29 Nov 2012 11:50:02 +0000 (11:50 +0000)]
Added the settings_entity_id field to PolicyFetchRequest and PolicyData protobufs.

BUG=163318

Review URL: https://chromiumcodereview.appspot.com/11418236

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@170164 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

6 months agoAdd device policy definition for local accounts.
mnissler@chromium.org [Fri, 16 Nov 2012 17:36:42 +0000 (17:36 +0000)]
Add device policy definition for local accounts.

BUG=chromium-os:35715
TEST=None

Review URL: https://chromiumcodereview.appspot.com/11358113

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@168236 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

6 months agoRevert "Linux: change protobuf default option to allow building"
nyquist@chromium.org [Mon, 12 Nov 2012 21:36:20 +0000 (21:36 +0000)]
Revert "Linux: change protobuf default option to allow building"

This reverts commit baefae90f294a981c973bffbdd3eccabfe796b6a.

The change broke Chrome for Android because non-vanilla protobuf-lite
Java files were generated.

Original review:
https://codereview.chromium.org/11228038/

TBR=phajdan.jr
BUG=160256

Review URL: https://codereview.chromium.org/11359146

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@167242 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

6 months agoLinux: change protobuf default option to allow building
phajdan.jr@chromium.org [Wed, 7 Nov 2012 22:27:57 +0000 (22:27 +0000)]
Linux: change protobuf default option to allow building
with unpatched system protobuf.

This is a preparation for landing https://codereview.chromium.org/11231046/
and a solution chosen because our custom protobuf changes will not
be accepted upstream.

Setting defaults to optimize for lite runtime and retain unknown fields
makes it possible to use the same .proto files with system protobuf.

BUG=157155
TEST=none

Review URL: https://codereview.chromium.org/11228038

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@166534 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

8 months agoClarified description of the timezone policy.
pneubeck@chromium.org [Thu, 23 Aug 2012 17:22:00 +0000 (17:22 +0000)]
Clarified description of the timezone policy.

Refining this CL: http://codereview.chromium.org/10832222/

TBR=nirnimesh@chromium.org
BUG=chromium-os:27206

Review URL: https://chromiumcodereview.appspot.com/10829449

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@153022 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

9 months agoAdded a timezone policy and pyauto tests for it.
pneubeck@chromium.org [Thu, 16 Aug 2012 13:42:37 +0000 (13:42 +0000)]
Added a timezone policy and pyauto tests for it.

Relanding this CL
  https://chromiumcodereview.appspot.com/10827050/
after a memory leak was fixed in the master.

TBR=darin@chromium.org
BUG=chromium-os:27206
TEST=
Test active policy:
1. Set the timezone policy to X.
2. Login, set timezone to Y (!= X)
3. Logout, check that the timezone is reset to X

Test inactive policy:
1. Set the timezone policy to X.
2. Login, set timezone to Y (!= X)
3. Logout, check that the timezone is still Y

Review URL: https://chromiumcodereview.appspot.com/10832222

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@151884 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

9 months agoRevert r150536 - "Added a timezone policy and pyauto tests for it."
mnissler@chromium.org [Wed, 8 Aug 2012 12:19:33 +0000 (12:19 +0000)]
Revert r150536 - "Added a timezone policy and pyauto tests for it."

It broke unit tests on Chrome OS.

BUG=None
TBR=pneubeck@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10829235

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@150540 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

9 months agoAdded a timezone policy and pyauto tests for it.
pneubeck@chromium.org [Wed, 8 Aug 2012 11:13:02 +0000 (11:13 +0000)]
Added a timezone policy and pyauto tests for it.

BUG=chromium-os:27206
TEST=See included tests.

Review URL: https://chromiumcodereview.appspot.com/10827050

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@150536 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

11 months agoIntroduce a device setting controlling allowed connection types for AU.
mnissler@chromium.org [Fri, 1 Jun 2012 15:01:07 +0000 (15:01 +0000)]
Introduce a device setting controlling allowed connection types for AU.

Currently, the updater just updates on WiFi and Ethernet and we'd like
to be more flexible in what connection types we allow updates on. This
only introduces the setting (which also allows policy control). A
follow-up change on the Chrome OS side is needed to wire up
update_engine.

BUG=chromium-os:31099
TEST=Compiles and passes tests, no user visible changes (yet).

Review URL: https://chromiumcodereview.appspot.com/10388254

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@140027 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

12 months agoWire up device policy for pinned launcher apps in retail mode.
mnissler@chromium.org [Mon, 7 May 2012 19:07:59 +0000 (19:07 +0000)]
Wire up device policy for pinned launcher apps in retail mode.

BUG=chromium-os:29917
TEST=Configure pinned apps device policy in retail mode, check that launcher shows configured apps (those need to be installed!).

Review URL: https://chromiumcodereview.appspot.com/10384036

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@135690 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

12 months agoAdd device location reporting
bartfab@chromium.org [Fri, 4 May 2012 15:34:03 +0000 (15:34 +0000)]
Add device location reporting

This CL implements device location reporting for Enterprise-enrolled Chrome OS devices. The position is determined using the existing Chrome geolocation stack.

This CL depends on https://chromiumcodereview.appspot.com/10344016/

ISSUE=chromium-os:18710
TEST=unit_tests including new DeviceStatusCollectorTest.Location

Review URL: http://codereview.chromium.org/10103029

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@135348 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

12 months agoAdd enterprise policy support to scatter downloading of ChromeOS updates
jaysri@chromium.org [Wed, 2 May 2012 21:45:35 +0000 (21:45 +0000)]
Add enterprise policy support to scatter downloading of ChromeOS updates

Enterprise admins need some form of control to reduce the spikes in bandwidth consumption when a new Chrome Device update is made available. This CL introduces a new policy to randomly distribute those downloads over a configured amount of time to reduce the spikes.

BUG=chromeos-29615: Implement scattering of downloads in UpdateEngine
TEST=update_engine works fine with new policy code.

Review URL: http://codereview.chromium.org/10281005

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@134996 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

12 months agoSpecify explicit defaults for boolean flags in device policy.
mnissler@chromium.org [Wed, 2 May 2012 19:42:37 +0000 (19:42 +0000)]
Specify explicit defaults for boolean flags in device policy.

BUG=None
TEST=compiles and passes tests, no observable changes
R=pastarmovj@chromium.org, binzhao@google.com, wan@google.com

Review URL: http://codereview.chromium.org/10306008

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@134968 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

13 months agoFix naming in release_channel_delegated comment.
mnissler@chromium.org [Thu, 5 Apr 2012 12:45:42 +0000 (12:45 +0000)]
Fix naming in release_channel_delegated comment.

BUG=None
TEST=None, comment-only change.
R=pastarmovj@chromium.org

Review URL: https://chromiumcodereview.appspot.com/9965103

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@130906 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

13 months agoAdd policy switch for location reporting and decode all policies in device_policy_cache.
mnissler@chromium.org [Fri, 30 Mar 2012 20:38:49 +0000 (20:38 +0000)]
Add policy switch for location reporting and decode all policies in device_policy_cache.

BUG=chromium-os:18710
TEST=none

Review URL: https://chromiumcodereview.appspot.com/9968013

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@129923 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

13 months agoRename enterprise policy proto fields from KIOSK to RETAIL. git-svn
pastarmovj@chromium.org [Thu, 22 Mar 2012 16:35:03 +0000 (16:35 +0000)]
Rename enterprise policy proto fields from KIOSK to RETAIL.

R=mnissler@chromium.org
BUG=none
TEST=none

Review URL: http://codereview.chromium.org/9814011

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@128226 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

14 months agoAdds a device policy to specify the set of initial urls for the demo user account.
pastarmovj@chromium.org [Mon, 19 Mar 2012 14:21:30 +0000 (14:21 +0000)]
Adds a device policy to specify the set of initial urls for the demo user account.

BUG=chromium-os:26249
TEST=Set the policy and observe the pages load only for the demo user. Also visible in about:policy.

Review URL: https://chromiumcodereview.appspot.com/9704092

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@127463 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

14 months agoNew device policies for enterprise auto-update controls.
jaysri@chromium.org [Fri, 16 Mar 2012 04:53:43 +0000 (04:53 +0000)]
New device policies for enterprise auto-update controls.

Enterprise admins need more control over the auto-update behavior
of ChromeOS. This CL adds two policies which will provide such
control, one for disabling updates and another for pinning a
device to a particular target version.

BUG=chromium-os:27307
TEST=Update_engine client code builds with new policies.

Review URL: http://codereview.chromium.org/9701047

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@127108 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

14 months agoUpdated the chrome_device_policy.proto, and AppPack decoding.
joaodasilva@chromium.org [Thu, 15 Mar 2012 10:34:28 +0000 (10:34 +0000)]
Updated the chrome_device_policy.proto, and AppPack decoding.

Removed the key-checksum field (which is unnecessary), and added the
online-only field.

BUG=chromium-os:25463
TEST=All works as before

Review URL: http://codereview.chromium.org/9691046

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@126882 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

14 months agoAdd a new policy to allow for release channel delegation.
pastarmovj@chromium.org [Wed, 14 Mar 2012 16:33:04 +0000 (16:33 +0000)]
Add a new policy to allow for release channel delegation.

BUG=chromium-os:26312
TEST=Enroll. Set the policy in CPanel to delegated and verify it is editable.

Review URL: https://chromiumcodereview.appspot.com/9668001

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@126659 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

14 months agoAdd the protobufs for the set of session timeout policies planned for the kiosk mode.
pastarmovj@chromium.org [Tue, 6 Mar 2012 14:42:40 +0000 (14:42 +0000)]
Add the protobufs for the set of session timeout policies planned for the kiosk mode.

BUG=chromium-os:26250
TEST=none

Review URL: http://codereview.chromium.org/9423043

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@125159 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

14 months agoAdd the registration mode field to the protobuf.
pastarmovj@chromium.org [Fri, 24 Feb 2012 12:38:26 +0000 (12:38 +0000)]
Add the registration mode field to the protobuf.
Make the test dm server send the new register response.

BUG=chromium-os:26248
TEST=none

Review URL: https://chromiumcodereview.appspot.com/9404006

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@123467 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

14 months agoAdded KioskModeAppPack proto.
joaodasilva@chromium.org [Thu, 23 Feb 2012 17:03:48 +0000 (17:03 +0000)]
Added KioskModeAppPack proto.

Also introduced files for the AppPackUpdater class, which currently only holds a couple of constants.

BUG=chromium-os:25463
TEST=Nothing breaks

Review URL: http://codereview.chromium.org/9355044

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@123261 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

15 months agoAggregate device activity, and report per-day activity in device status reports.
dubroy@chromium.org [Thu, 16 Feb 2012 16:33:40 +0000 (16:33 +0000)]
Aggregate device activity, and report per-day activity in device status reports.

BUG=chromium-os:26372
TEST=Manual.

Review URL: http://codereview.chromium.org/9348105

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@122299 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

15 months agoRename the ephemeral_users field in the device policy protobuf
bartfab@google.com [Wed, 15 Feb 2012 21:05:21 +0000 (21:05 +0000)]
Rename the ephemeral_users field in the device policy protobuf

This CL renames the "ephemeral_users" in the device policy protobuf
to "ephemeral_users_enabled", making it clear that this is a Boolean
setting.

BUG=chromium-os:26406
TEST=unit_test *Policy* and CrosSettingsTest.SetEphemeralUsersEnabled
TEST=chrome builds and runs

Review URL: http://codereview.chromium.org/9365078

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@122145 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

15 months agoAdd device policy to enable ephemeral users
bartfab@google.com [Mon, 6 Feb 2012 21:56:41 +0000 (21:56 +0000)]
Add device policy to enable ephemeral users

This adds a device policy to the protobuf file that will be used to
enable ephemeral users.

BUG=chromium-os:20004
TEST=unit_test *Policy*, chrome builds and runs

Review URL: http://codereview.chromium.org/9104038

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@120620 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

15 months agoApply individual policies for the various parts of device status reports.
dubroy@chromium.org [Fri, 27 Jan 2012 18:53:20 +0000 (18:53 +0000)]
Apply individual policies for the various parts of device status reports.

BUG=chromium-os:24308
TEST=Modified DeviceStatusCollectorTest in unit_tests to check that
portions of the status are only included when the appropriate pref is
enabled.

Review URL: http://codereview.chromium.org/9289017

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@119470 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

15 months agoAdd policies for specific parts of device status reports.
dubroy@chromium.org [Wed, 25 Jan 2012 14:03:25 +0000 (14:03 +0000)]
Add policies for specific parts of device status reports.

BUG=chromium-os:24308
TEST=Manual

Review URL: https://chromiumcodereview.appspot.com/9284025

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@119058 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

15 months agoFlag auto-enrollment register requests.
joaodasilva@chromium.org [Sun, 22 Jan 2012 16:24:26 +0000 (16:24 +0000)]
Flag auto-enrollment register requests.

BUG=chromium-os:23063
TEST=DeviceTokenFetcherTest.*

Review URL: https://chromiumcodereview.appspot.com/9233008

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@118647 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

15 months agoAdd browser version to device status reports.
dubroy@chromium.org [Thu, 19 Jan 2012 10:26:12 +0000 (10:26 +0000)]
Add browser version to device status reports.

patch from issue 7548001

BUG=22035
TEST=Confirm on the server side that the correct value is being received.

Review URL: http://codereview.chromium.org/9243007

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@118280 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

16 months agoConvert DeviceTokenFetcher and CloudPolicyController response callbacks.
mnissler@chromium.org [Tue, 3 Jan 2012 14:28:08 +0000 (14:28 +0000)]
Convert DeviceTokenFetcher and CloudPolicyController response callbacks.

BUG=chromium:108928
TEST=Compiles and passes tests.

Review URL: http://codereview.chromium.org/9064006

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@116133 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

16 months agoAdded DMServer updates to the auto-enrollment protobuf fields.
joaodasilva@chromium.org [Wed, 28 Dec 2011 13:33:02 +0000 (13:33 +0000)]
Added DMServer updates to the auto-enrollment protobuf fields.

BUG=chromium-os:23063
TEST=All works as before. unit_tests:AutoEnrollmentClientTest.*

Review URL: http://codereview.chromium.org/9044005

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@115886 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

17 months agoUpdated dmserver protobuf to include autoenrollment messages.
joaodasilva@chromium.org [Wed, 30 Nov 2011 10:10:03 +0000 (10:10 +0000)]
Updated dmserver protobuf to include autoenrollment messages.

BUG=chromium-os:23063

Review URL: http://codereview.chromium.org/8486013

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@112185 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

18 months agoAdd client side protobuf fields for reporting status with policy requests.
dubroy@chromium.org [Wed, 16 Nov 2011 16:53:04 +0000 (16:53 +0000)]
Add client side protobuf fields for reporting status with policy requests.

BUG=chromium-os:22036
TEST=None.

Review URL: http://codereview.chromium.org/8578002

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@110311 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

18 months agoRename network configuration policy as per Zhanyong's proposal.
mnissler@chromium.org [Tue, 25 Oct 2011 16:04:17 +0000 (16:04 +0000)]
Rename network configuration policy as per Zhanyong's proposal.

BUG=None
TEST=compiles and passes tests.

Review URL: http://codereview.chromium.org/8382005

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@107124 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

19 months agoIntroduce user and device policy for shipping network configuration.
mnissler@chromium.org [Thu, 6 Oct 2011 17:09:00 +0000 (17:09 +0000)]
Introduce user and device policy for shipping network configuration.

BUG=19411
TEST=None

Review URL: http://codereview.chromium.org/8144005

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@104310 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

22 months agoAdd a device policy for specifying the release channel.
dubroy@chromium.org [Fri, 1 Jul 2011 09:17:18 +0000 (09:17 +0000)]
Add a device policy for specifying the release channel.

This is a first step towards a full solution. For now, if the release channel
is specified in a policy, it has the same effect as if the user changed the
combo box on the About page. Still to-do: store policy value into a LocalState
pref, UI changes, and make the setting secure (it's currently stored in
/etc/lsb-release).

BUG=chromium-os:15382
TEST=Run a local device_management test server and specify the release
channel in the device policy. Edit /etc/init/update-engine.conf to start
update_engine with the --v=0 option and restart update-engine. Enroll the
device and verify in /var/log/update-engine.conf that the track change was
noticed by the update engine.

Review URL: http://codereview.chromium.org/7287001

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@91280 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

22 months agoAdd the metrics enabled proto.
pastarmovj@chromium.org [Fri, 24 Jun 2011 09:08:10 +0000 (09:08 +0000)]
Add the metrics enabled proto.

BUG=chromium-os:15188
TEST=none

Review URL: http://codereview.chromium.org/7240022

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@90348 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

22 months agoSwitch test server to new-style "device gone" status code.
mnissler@chromium.org [Tue, 21 Jun 2011 14:47:38 +0000 (14:47 +0000)]
Switch test server to new-style "device gone" status code.

BUG=None
TEST=compiles and passes tests

Review URL: http://codereview.chromium.org/7200026

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@89827 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

22 months agoRemove unused parts of the cloud policy protocol
gfeher@chromium.org [Tue, 21 Jun 2011 10:14:53 +0000 (10:14 +0000)]
Remove unused parts of the cloud policy protocol

TEST=DeviceManagementServiceIntegrationTest.WithTestServer

Review URL: http://codereview.chromium.org/7104145

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@89813 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

22 months agoIntroduce a state flag within the signed policy response.
mnissler@chromium.org [Mon, 20 Jun 2011 08:36:06 +0000 (08:36 +0000)]
Introduce a state flag within the signed policy response.

This allows us to set change a client's state while keeping it
registered with the server. This is useful to switch clients into a
dormant state, as well as eventually support signatures on "unmanaged"
responses.

BUG=chromium-os:15189
TEST=compiles and passes tests

Review URL: http://codereview.chromium.org/7200010

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@89645 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

23 months agoSplit the policy refresh rate preference into user- and device-policy refresh rate.
sfeuz@chromium.org [Mon, 6 Jun 2011 17:54:26 +0000 (17:54 +0000)]
Split the policy refresh rate preference into user- and device-policy refresh rate.

This is an effort towards removing dependencies of the ProfilePolicyConnector on Profile.

BUG=none
TEST=Verify that user- and device-refresh rate are set correctly when specified by policy.

Review URL: http://codereview.chromium.org/7014036

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@88003 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoAdd protocol filed for the CameraEnabled device policy
gfeher@chromium.org [Wed, 11 May 2011 09:05:08 +0000 (09:05 +0000)]
Add protocol filed for the CameraEnabled device policy

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/6879078

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@84957 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoMerge server-side changes of the cloud policy protocol
gfeher@chromium.org [Tue, 19 Apr 2011 21:22:16 +0000 (21:22 +0000)]
Merge server-side changes of the cloud policy protocol

BUG=none
TEST=Chrome still compiles

Review URL: http://codereview.chromium.org/6880031

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@82158 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoAdd immutable settings checks when handling policy.
mnissler@chromium.org [Mon, 18 Apr 2011 11:09:07 +0000 (11:09 +0000)]
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

Review URL: http://codereview.chromium.org/6869042

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@81932 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoSupport decoding GenericNamedValue based policy.
jkummerow@chromium.org [Fri, 15 Apr 2011 12:03:44 +0000 (12:03 +0000)]
Support decoding GenericNamedValue based policy.

Even if it arrives in the ChromeSettingsProto message where Chrome expects to find explicitly typed policy.
This is necessary for as long as CPanel/D3 deliver old-style policy. We include this fix on the client side to make a corresponding workaround in DMServer unnecessary.

BUG=chromium-os:14102
TEST=UserPolicyCacheTest.OldStylePolicy; manual test against DMServer without the server-side workaround

Review URL: http://codereview.chromium.org/6840014

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@81729 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoConnect enrollment screen to cloud policy subsystem.
mnissler@chromium.org [Wed, 13 Apr 2011 08:27:40 +0000 (08:27 +0000)]
Connect enrollment screen to cloud policy subsystem.

Poke the policy subsystem after authenticating GAIA in order to finalize
enrollment.

BUG=chromium-os:13277
TEST=manual

Review URL: http://codereview.chromium.org/6821045

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@81376 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years ago[Chrome OS] Add setting for enabling whitelisting to device policy proto
cmasone@chromium.org [Tue, 12 Apr 2011 17:21:51 +0000 (17:21 +0000)]
[Chrome OS] Add setting for enabling whitelisting to device policy proto

Today, we allow users to specify a whitelist but not enforce it.  I can see
an argument for changing this semantic...but in M13 :-)

Add a field to the device policy proto buffer so that we can avoid changing the UI right now.

BUG=13230
TEST=build chrome

R=jkummerow@chromium.org,gfeher@chromium.org

Review URL: http://codereview.chromium.org/6825078

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@81263 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years ago[Chrome OS] Add currently-supported signed settings to device policy proto
cmasone@chromium.org [Mon, 11 Apr 2011 18:19:53 +0000 (18:19 +0000)]
[Chrome OS] Add currently-supported signed settings to device policy proto

Drawing from the lists of preferences in user_cros_settings_provider.cc, this adds the remaining boolean prefs
to our device policy protobuf definition.

BUG=13230
TEST=build chrome

R=jkummerow@chromium.org

Review URL: http://codereview.chromium.org/6821049

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@81121 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoProvide backend methods for device enrollment UI
jkummerow@chromium.org [Mon, 11 Apr 2011 10:59:08 +0000 (10:59 +0000)]
Provide backend methods for device enrollment UI

BUG=chromium-os:13277
TEST=Existing unit tests

Review URL: http://codereview.chromium.org/6794022

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@81088 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoUpdate protobuf definitions for ChromeOS device policy support
jkummerow@chromium.org [Fri, 25 Mar 2011 12:45:13 +0000 (12:45 +0000)]
Update protobuf definitions for ChromeOS device policy support

BUG=chromium-os:11258
TEST=compiles; existing unit tests pass

Review URL: http://codereview.chromium.org/6727027

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@79390 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoUpdate policy backend and testserver for the latest policy protocol
gfeher@chromium.org [Tue, 1 Mar 2011 23:01:35 +0000 (23:01 +0000)]
Update policy backend and testserver for the latest policy protocol

BUG=chromium-os:11253, chromium-os:11254, chromium-os:11255
TEST=DeviceManagementServiceIntegrationTest.WithTestServer

Review URL: http://codereview.chromium.org/6537020

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@76455 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoNew policy protobuf protocol.
jkummerow@chromium.org [Thu, 17 Feb 2011 13:25:23 +0000 (13:25 +0000)]
New policy protobuf protocol.

(Third attempt to land http://codereview.chromium.org/6409040/ -- now without memory leaks)

- cloud_policy.proto autogenerated from policy_templates.json
- C++ method decoding the protobuf also autogenerated from policy_templates.json
- changed policy fetching mechanism to fetch new-style policy protobufs

BUG=68309, chromium-os:11253, chromium-os:11255
TEST=CloudPolicyCacheTest.*; also manual test against python testserver

Review URL: http://codereview.chromium.org/6532019

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@75259 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoRevert 75106 - New policy protobuf protocol.
jkummerow@chromium.org [Wed, 16 Feb 2011 14:37:00 +0000 (14:37 +0000)]
Revert 75106 - New policy protobuf protocol.

(Second attempt to land http://codereview.chromium.org/6409040/)

- cloud_policy.proto autogenerated from policy_templats.json
- C++ method decoding the protobuf also autogenerated from policy_templates.json
- changed policy fetching mechanism to fetch new-style policy protobufs

BUG=68309, chromium-os:11253, chromium-os:11255
TEST=CloudPolicyCacheTest.*; also manual test against python testserver

Review URL: http://codereview.chromium.org/6523058

TBR=jkummerow@chromium.org

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@75115 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoNew policy protobuf protocol.
jkummerow@chromium.org [Wed, 16 Feb 2011 12:20:44 +0000 (12:20 +0000)]
New policy protobuf protocol.

(Second attempt to land http://codereview.chromium.org/6409040/)

- cloud_policy.proto autogenerated from policy_templats.json
- C++ method decoding the protobuf also autogenerated from policy_templates.json
- changed policy fetching mechanism to fetch new-style policy protobufs

BUG=68309, chromium-os:11253, chromium-os:11255
TEST=CloudPolicyCacheTest.*; also manual test against python testserver

Review URL: http://codereview.chromium.org/6523058

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@75106 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoRevert 75082 - New policy protobuf protocol.
jkummerow@chromium.org [Wed, 16 Feb 2011 09:52:42 +0000 (09:52 +0000)]
Revert 75082 - New policy protobuf protocol.

- cloud_policy.proto autogenerated from policy_templates.json
- C++ method decoding the protobuf autogenerated from policy_templates.json
- changed policy fetching mechanism to fetch new-style policy protobufs

BUG=68309, chromium-os:11253, chromium-os:11255
TEST=CloudPolicyCacheTest.*; also manual test against python testserver

Review URL: http://codereview.chromium.org/6409040

TBR=jkummerow@chromium.org

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@75084 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoNew policy protobuf protocol.
jkummerow@chromium.org [Wed, 16 Feb 2011 09:36:09 +0000 (09:36 +0000)]
New policy protobuf protocol.

- cloud_policy.proto autogenerated from policy_templates.json
- C++ method decoding the protobuf autogenerated from policy_templates.json
- changed policy fetching mechanism to fetch new-style policy protobufs

BUG=68309, chromium-os:11253, chromium-os:11255
TEST=CloudPolicyCacheTest.*; also manual test against python testserver

Review URL: http://codereview.chromium.org/6409040

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@75082 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoNew protocol and testserver for the Chrome-DMServer protocol
gfeher@chromium.org [Fri, 28 Jan 2011 18:15:24 +0000 (18:15 +0000)]
New protocol and testserver for the Chrome-DMServer protocol

New features:
-Message to ping DMServer and ask if a user is managed
-Signed policy responses
-Server assigns names to ChromeOS devices
A temporary version of cloud_policies.proto is also checked in (it will be auto-generated later).

BUG=chromium-os:11253,chromium-os:11254
TEST=none

Review URL: http://codereview.chromium.org/6161007

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@72975 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoUpdate some directories' svn:ignore props.
pkasting@chromium.org [Tue, 11 Jan 2011 23:23:57 +0000 (23:23 +0000)]
Update some directories' svn:ignore props.

BUG=none
TEST=none
TBR=maruel

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@71103 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoPersist 'this device is not managed' information
jkummerow@chromium.org [Mon, 29 Nov 2010 15:57:37 +0000 (15:57 +0000)]
Persist 'this device is not managed' information

This is necessary backend work for fixing bug 64314 (make login wait only for the first registration check).
It also enables subsequent polling of the DM server at defined intervals (rather than at each login, or never).

BUG=64314
TEST=unit tests: DeviceManagementPolicyProviderTest.*

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67530

Review URL: http://codereview.chromium.org/5331008

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@67535 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoRevert 67530 - Persist 'this device is not managed' information
jkummerow@chromium.org [Mon, 29 Nov 2010 13:15:01 +0000 (13:15 +0000)]
Revert 67530 - Persist 'this device is not managed' information

This is necessary backend work for fixing bug 64314 (make login wait only for the first registration check).
It also enables subsequent polling of the DM server at defined intervals (rather than at each login, or never).

BUG=64314
TEST=unit tests: DeviceManagementPolicyProviderTest.*

Review URL: http://codereview.chromium.org/5331008

TBR=jkummerow@chromium.org
Review URL: http://codereview.chromium.org/5321011

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@67531 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoPersist 'this device is not managed' information
jkummerow@chromium.org [Mon, 29 Nov 2010 12:46:03 +0000 (12:46 +0000)]
Persist 'this device is not managed' information

This is necessary backend work for fixing bug 64314 (make login wait only for the first registration check).
It also enables subsequent polling of the DM server at defined intervals (rather than at each login, or never).

BUG=64314
TEST=unit tests: DeviceManagementPolicyProviderTest.*

Review URL: http://codereview.chromium.org/5331008

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@67530 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoDevice management constants cleanup
jkummerow@chromium.org [Wed, 24 Nov 2010 14:30:50 +0000 (14:30 +0000)]
Device management constants cleanup

• Move device management protocol constants into shared header file
• Filter out policies with unwanted keys when decoding server response

This also fixes bug 62058.

BUG=62481
TEST=existing unit tests still work: DeviceManagementPolicyProviderTest.*:DeviceTokenFetcherTest.*

Review URL: http://codereview.chromium.org/5348001

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@67259 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoUpdate the device-management protocol buffer.
markusheintz@chromium.org [Wed, 17 Nov 2010 17:38:44 +0000 (17:38 +0000)]
Update the device-management protocol buffer.

BUG=63469
TEST=none

Review URL: http://codereview.chromium.org/5118003

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@66456 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoCrOS policies: Store device ID with device token
jkummerow@chromium.org [Wed, 17 Nov 2010 14:13:14 +0000 (14:13 +0000)]
CrOS policies: Store device ID with device token

BUG=62798
TEST=unit tests: DeviceTokenFetcherTest.StoreAndLoad

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66415

Review URL: http://codereview.chromium.org/4949003

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@66435 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoRevert 66415 - CrOS policies: Store device ID with device token
jkummerow@chromium.org [Wed, 17 Nov 2010 10:51:01 +0000 (10:51 +0000)]
Revert 66415 - CrOS policies: Store device ID with device token

BUG=62798
TEST=unit tests: DeviceTokenFetcherTest.StoreAndLoad

Review URL: http://codereview.chromium.org/4949003

TBR=jkummerow@chromium.org
Review URL: http://codereview.chromium.org/5166001

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@66416 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoCrOS policies: Store device ID with device token
jkummerow@chromium.org [Wed, 17 Nov 2010 10:23:06 +0000 (10:23 +0000)]
CrOS policies: Store device ID with device token

BUG=62798
TEST=unit tests: DeviceTokenFetcherTest.StoreAndLoad

Review URL: http://codereview.chromium.org/4949003

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@66415 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoPersist timestamps when caching DeviceManagementPolicies
danno@chromium.org [Fri, 12 Nov 2010 14:07:12 +0000 (14:07 +0000)]
Persist timestamps when caching DeviceManagementPolicies

...instead of relying on file modification time.

Also in this release:
- updated unit tests. They now use the production code path in PersistPolicyTask for writing policies, instead of duplicating that functionality.
- fixed nit: "#include <string>" in device_management_policy_cache_unittest.cc

BUG=62489
TEST=unit tests: DeviceManagementPolicyCacheTest* (in particular, these should no longer be flaky on Windows)

Review URL: http://codereview.chromium.org/4752004
Patch from Jakob Kummerow <jkummerow@google.com>.

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@65944 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoAdd device management test server to net infrastructure.
mnissler@chromium.org [Thu, 11 Nov 2010 08:47:14 +0000 (08:47 +0000)]
Add device management test server to net infrastructure.

This adds a simple device management server implementation written in python that's useful for unit tests and local testing.

BUG=62318
TEST=Compiles and browser tests in device_management_backend_browsertest succeed

Review URL: http://codereview.chromium.org/4659002

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@65783 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

2 years agoImplement device token fetcher
danno@chromium.org [Fri, 29 Oct 2010 09:20:03 +0000 (09:20 +0000)]
Implement device token fetcher

First step in mechanism for fetching cloud-based policy for CrOS.

BUG=none
TEST=DeviceTokenFetcher*

Review URL: http://codereview.chromium.org/4121003

git-svn-id: http://src.chromium.org/svn/trunk/src/chrome/browser/policy/proto@64388 4ff67af0-8c30-449e-8e8b-ad334ec8d88c