Enable Enterprise enrollment on desktop builds.
commitff9ed9f4171c049ae5c090e53b99bdd0de9e5d82
authorjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 2 May 2014 17:59:42 +0000 (2 17:59 +0000)
committerjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 2 May 2014 17:59:42 +0000 (2 17:59 +0000)
treefcdf6e9071071c134032041e1a32d2f7bbf04c8d
parent0f5f8ee8edaa4cc9fa53290942be92126a58ed1a
Enable Enterprise enrollment on desktop builds.

Note: this is a reland of https://codereview.chromium.org/258743005

This change implements some of the DBus stub methods so that enterprise enrollment works on desktop builds. That will make development of features that depend on enrollment faster for developers that use this workflow (e.g. for kiosk enterprise apps, public accounts, testing some device policies, etc).

- Override some of the directories and files involved with the enrollment state
- Simple stub implementation of the DBus calls involved
- Write a persistent cache of the install attributes
- Cleaned up the stub for user cloud policy and made them persistent too
- Updated some tests

This change doesn't affect production code.

TBR=jochen@chromium.org
BUG=240269, 367674

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267861 0039d316-1c4b-4281-b951-d872f2087c98
27 files changed:
base/path_service.cc
base/path_service.h
base/path_service_unittest.cc
chrome/app/chrome_main_delegate.cc
chrome/browser/chromeos/chrome_browser_main_chromeos.cc
chrome/browser/chromeos/login/kiosk_browsertest.cc
chrome/browser/chromeos/policy/device_policy_cros_browser_test.cc
chrome/browser/chromeos/policy/device_policy_cros_browser_test.h
chrome/browser/chromeos/policy/enterprise_install_attributes_unittest.cc
chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc
chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos_unittest.cc
chrome/browser/chromeos/settings/device_settings_test_helper.cc
chrome/browser/chromeos/settings/device_settings_test_helper.h
chrome/browser/extensions/api/file_system/file_system_apitest.cc
chromeos/DEPS
chromeos/chromeos.gyp
chromeos/chromeos_paths.cc
chromeos/chromeos_paths.h
chromeos/dbus/fake_cryptohome_client.cc
chromeos/dbus/fake_session_manager_client.cc
chromeos/dbus/fake_session_manager_client.h
chromeos/dbus/mock_session_manager_client.h
chromeos/dbus/session_manager_client.cc
chromeos/dbus/session_manager_client.h
chromeos/system/statistics_provider.cc
components/policy.gypi
components/policy/policy_proto_export.h [new file with mode: 0644]