The consumer management enroll and unenroll buttons should only be visible to the...
commite1f93cf4ddb345409f52c610dc93cc2cba8592f6
authordavidyu@chromium.org <davidyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 25 Jul 2014 12:21:29 +0000 (25 12:21 +0000)
committerdavidyu@chromium.org <davidyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 25 Jul 2014 12:21:29 +0000 (25 12:21 +0000)
tree7269bb602641d7f8a7c385cc9a37a85c7c78d446
parentf656a653a362913c38b4484cada2fcc4c89e87d7
The consumer management enroll and unenroll buttons should only be visible to the device owner.

Shows the enroll button when the device is not enrolled, and shows the unenroll
button when the device is enrolled.

When the enroll button is clicked, sets a variable in the local state and
reboots.

TEST=maunally test the settings page.
BUG=chromium:353050
R=bartfab@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285567 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc
chrome/browser/resources/options/browser_options.js
chrome/browser/resources/options/chromeos/consumer_management_overlay.js
chrome/browser/ui/webui/options/browser_options_handler.cc
chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc
chrome/browser/ui/webui/options/chromeos/consumer_management_handler.h
chrome/common/pref_names.cc
chrome/common/pref_names.h