chromium/src/chrome/browser/policy/proto.git
9 months agoRemoved the old policy protobufs location. master
joaodasilva@chromium.org [Thu, 16 Jan 2014 05:14:32 +0000 (05:14 +0000)]
Removed the old policy protobufs location.

The policy protobufs were duplicated at chrome/browser/policy/proto
so that the protofiles ebuild of ChromeOS could still fetch them.
That ebuild has been fixed in a separate CL at:

  https://chromium-review.googlesource.com/#/c/182300/

BUG=327345

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

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

10 months agoAdd a new AssociationState DEPROVISIONED for cloud policy.
mnissler@chromium.org [Fri, 20 Dec 2013 14:10:23 +0000 (14:10 +0000)]
Add a new AssociationState DEPROVISIONED for cloud policy.

This adds a new enum value to Policy.AssociationState, indicating that
the server side dropped the client from management. The association
state is now also surfaced in the Status line in about:policy.

BUG=chromium:329834

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

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

10 months agoFix the copyright header on the policy protobufs.
joaodasilva@chromium.org [Thu, 12 Dec 2013 07:43:52 +0000 (07:43 +0000)]
Fix the copyright header on the policy protobufs.

These files were moved and the header was automatically updated to remove the
"(c)". However, this will make the presubmit scripts fail if a proto is updated.

BUG=271392
R=mnissler@chromium.org

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

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

10 months agoMove the cloud policy protobufs into the component.
joaodasilva@chromium.org [Wed, 11 Dec 2013 14:50:24 +0000 (14:50 +0000)]
Move the cloud policy protobufs into the component.

This change moved chrome/browser/policy/proto/chromeos to
chrome/browser/chromeos/policy/proto, and chrome/browser/policy/proto/cloud to
components/policy/proto.

This enables the component code to use the cloud policy protobufs, so that iOS
can use cloud policy.

The old location is still kept temporarily until new git mirrors are set up
pointing to the new locations. A couple of PRESUBMIT scripts check that the
files are kept in sync.

BUG=271392, 327345
TBR=mnissler@chromium.org

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

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

10 months agoCleanup cloud policy protobufs.
joaodasilva@chromium.org [Tue, 10 Dec 2013 13:12:55 +0000 (13:12 +0000)]
Cleanup cloud policy protobufs.

Removed a proto message and fields that were using during TT phase and
aren't used anymore.

BUG=None

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

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

10 months agokiosk: Network connectivity test during launch.
xiyuan@chromium.org [Thu, 5 Dec 2013 03:25:56 +0000 (03:25 +0000)]
kiosk: Network connectivity test during launch.

- Add NetworkStateInformer and ErrorScreenActor to
  AppLaunchSplashScreenHandler;
- AppLaunchSplashScreenHandler sends network state
  to its delegate (AppLaunchController) during network
  check;
- AppLaunchController decides when to show network
  configure UI and call AppLaunchSplashScreenActor
  to show it (via ErrorScreenActor);
- Show network config UI for enterprise kiosk;
- Add a 'Reboot' button for kiosk network error;
- Add a PromptForNetworkWhenOffline boolean field to
  DeviceLocalAccountsProto to control whether to show
  network config UI for enterprise managed kiosk;

BUG=314710
TEST=KioskTest.LaunchAppNetworkDown/Portal

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

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

11 months agoReport logged in users on enterprise managed devices.
stepco@chromium.org [Wed, 30 Oct 2013 03:04:59 +0000 (03:04 +0000)]
Report logged in users on enterprise managed devices.

BUG=308664

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

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

11 months agoDo not mark CameraEnabled proto before it is removed from ChromeOS.
antrim@chromium.org [Thu, 24 Oct 2013 13:04:41 +0000 (13:04 +0000)]
Do not mark CameraEnabled proto before it is removed from ChromeOS.

Partially revert changes made by https://chromiumcodereview.appspot.com/23460030

BUG=None
TBR=mnissler@chromium.org
NOTRY=true

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

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

11 months agoPolicy for specifying days before user account can be cleaned up.
antrim@chromium.org [Wed, 23 Oct 2013 04:57:59 +0000 (04:57 +0000)]
Policy for specifying days before user account can be cleaned up.

Code that uses this policy would be located in chromeos.
BUG=306334
NOTRY=true

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

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

12 months agoAdded explicit default values to AttestationSettingsProto.
dkrahn@chromium.org [Fri, 18 Oct 2013 20:22:40 +0000 (20:22 +0000)]
Added explicit default values to AttestationSettingsProto.

This change has no effect on client behavior but is desirable for
robustness on the server side.

BUG=None
TEST=build

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

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

13 months agoClean up device policy definitions.
mnissler@chromium.org [Fri, 13 Sep 2013 14:19:57 +0000 (14:19 +0000)]
Clean up device policy definitions.

In particular:
* deprecate obsolete protobuf fields
* remove support for Kiosk App update URLs
* add missing decoding for http_downloads_enabled

BUG=None

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

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

13 months agoChromeOS: Add p2p_enabled field to AutoUpdateSettingsProto
zeuthen@chromium.org [Thu, 12 Sep 2013 01:51:39 +0000 (01:51 +0000)]
ChromeOS: Add p2p_enabled field to AutoUpdateSettingsProto

BUG=chromium:260442
TEST=None

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

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

13 months agoAdded cloud policy registration and fetch types for iOS.
joaodasilva@chromium.org [Thu, 5 Sep 2013 07:21:31 +0000 (07:21 +0000)]
Added cloud policy registration and fetch types for iOS.

The --fake-cloud-policy-type flag has also been enabled for iOS, for testing
purposes.

BUG=285084

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

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

13 months agoAdded a device policy: attestation for protected content.
dkrahn@google.com [Thu, 22 Aug 2013 10:12:06 +0000 (10:12 +0000)]
Added a device policy: attestation for protected content.

BUG=chromium:270316
TEST=unit, manual

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

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

13 months agoUpdate policy description for SystemUse24HourClock policy.
mnissler@chromium.org [Wed, 21 Aug 2013 16:43:21 +0000 (16:43 +0000)]
Update policy description for SystemUse24HourClock policy.

This clarifies the policy description to agree with the implementation
and describe the default behavior.

BUG=
TEST=None, doc update only.

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

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

14 months agoLogin screen and Guest mode should use device owner preference
alemate@chromium.org [Wed, 7 Aug 2013 18:10:34 +0000 (18:10 +0000)]
Login screen and Guest mode should use device owner preference
settings.clock.use_24hour_clock value for time format.

BUG=258199

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

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

14 months agoImplement cloud policy invalidations using the invalidation service framework.
stepco@chromium.org [Wed, 31 Jul 2013 04:15:29 +0000 (04:15 +0000)]
Implement cloud policy invalidations using the invalidation service framework.

BUG=263287

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

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

15 months agoAdd policies to control power management on the Chrome OS login screen
bartfab@chromium.org [Wed, 17 Jul 2013 13:44:38 +0000 (13:44 +0000)]
Add policies to control power management on the Chrome OS login screen

This CL adds a device policy that controls power management on the login
screen. Before this CL, powerd controlled power policy on the login screen,
always using built-in defaults. After this CL, Chrome contols power policy
by explicitly sending it to powerd whenever the login screen is shown. The
built-in defaults match those that powerd used to have but they can now be
overridden through device policy.

BUG=241794
TEST=Full coverage with new unit and broweser tests

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

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

15 months agoIf requested, report network interfaces to management server.
mnissler@chromium.org [Fri, 12 Jul 2013 18:50:16 +0000 (18:50 +0000)]
If requested, report network interfaces to management server.

This adds a device policy that allows the administrator to request
Chrome OS devices to report a list of their network interfaces and
corresponding device hardware addresses to the device management server
as part of device status reporting.

BUG=chromium:218410
TEST=unit test

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

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

15 months agoDevice robot refresh token integrity validation.
davidroche@chromium.org [Sat, 22 Jun 2013 13:38:22 +0000 (13:38 +0000)]
Device robot refresh token integrity validation.

Before using the robot account refresh token stored in an enterprise
device's Local State, verify that the token is owned by the service
account id found in the device policy.

BUG=245121

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

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

15 months agoAdded policy for disabling locally managed users.
dzhioev@chromium.org [Sat, 22 Jun 2013 00:38:14 +0000 (00:38 +0000)]
Added policy for disabling locally managed users.
By default LMU disabled for managed devices.

Also added support of new policy in ChromeOS part.

BUG=229298

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

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

15 months agoAdd device policies to control accessibility settings on the login screen
bartfab@chromium.org [Fri, 21 Jun 2013 18:41:52 +0000 (18:41 +0000)]
Add device policies to control accessibility settings on the login screen

This CL adds device policies that provide control over the default state
of the following four accessibility settings on the login screen:
* Large cursor
* Spoken feedback
* High contrast mode
* Screen magnifier type

The User can temporarily override the settings but the defaults are
restored whenever the login screen is shown anew or the user remains idle
on the login screen for one minute.

BUG=225955, 225956, 243350, 247298
TEST=New unittests + new browsertests + manual in VM

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207755

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

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

16 months agoRevert 207755 "Add device policies to control accessibility sett..."
glider@chromium.org [Fri, 21 Jun 2013 11:52:37 +0000 (11:52 +0000)]
Revert 207755 "Add device policies to control accessibility sett..."

BUG=252670
TBR=bartfab@chromium.org

> Add device policies to control accessibility settings on the login screen
>
> This CL adds device policies that provide control over the default state
> of the following four accessibility settings on the login screen:
> * Large cursor
> * Spoken feedback
> * High contrast mode
> * Screen magnifier type
>
> The User can temporarily override the settings but the defaults are
> restored whenever the login screen is shown anew or the user remains idle
> on the login screen for one minute.
>
> BUG=225955, 225956, 243350, 247298
> TEST=New unittests + new browsertests + manual in VM
>
> Review URL: https://chromiumcodereview.appspot.com/16658015

TBR=bartfab@chromium.org

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

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

16 months agoAdd device policies to control accessibility settings on the login screen
bartfab@chromium.org [Fri, 21 Jun 2013 08:48:57 +0000 (08:48 +0000)]
Add device policies to control accessibility settings on the login screen

This CL adds device policies that provide control over the default state
of the following four accessibility settings on the login screen:
* Large cursor
* Spoken feedback
* High contrast mode
* Screen magnifier type

The User can temporarily override the settings but the defaults are
restored whenever the login screen is shown anew or the user remains idle
on the login screen for one minute.

BUG=225955, 225956, 243350, 247298
TEST=New unittests + new browsertests + manual in VM

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

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

16 months agoAdded constants for Android user policy to the cloud policy protobufs.
joaodasilva@chromium.org [Mon, 17 Jun 2013 07:14:24 +0000 (07:14 +0000)]
Added constants for Android user policy to the cloud policy protobufs.

These constants allow the server to determine that the user policies being
requested are meant for an Android device.

BUG=248527

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

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

16 months agoDo not enforce auto-reboot policies in non-kiosk-app sessions
bartfab@chromium.org [Fri, 31 May 2013 22:32:34 +0000 (22:32 +0000)]
Do not enforce auto-reboot policies in non-kiosk-app sessions

This CL replaces the two auto-reboot policies added in M27 with new ones
that work in exactly the same way as before but are not enforced when a
non-kiosk-app session is in progress.

BUG=243166
TEST=Manual in VM and unit tests

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

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

17 months agoWire the device requisition parameter for enterprise enrollment.
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

17 months 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

17 months 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

17 months 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

17 months 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

17 months 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

19 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

19 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

19 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

20 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

20 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

20 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

20 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

21 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

21 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

22 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

22 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

23 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

23 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

23 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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

3 years 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

3 years 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

3 years 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

3 years 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

3 years 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

3 years 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

3 years 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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