summaryrefslogtreecommitdiffstats
path: root/chromeos/chromeos_paths.cc
Commit message (Collapse)AuthorAgeFilesLines
* Use machine-info stub with serial number for CHROMEOS=1 builds.tnagel2014-12-171-0/+11
| | | | | | | | | | | | | | | | | | The current practice is reading the serial number from /tmp/machine-info if it exists and generating a random one otherwise. This makes re-enrollment testing (which requires a stable serial number) somewhat cumbersome. This CL creates a machine-info stub in the profile directory so that re-enrollment can be tested without the need of manually creating a stub file and without interference between multiple profiles on the same machine. BUG=none Review URL: https://codereview.chromium.org/790673003 Cr-Commit-Position: refs/heads/master@{#308852}
* Cleanup: Use base/files/file_util.h instead of base/file_util.h in ash/, ↵thestig2014-09-101-1/+1
| | | | | | | | | | athena/, and chromeos/ TBR=pneubeck@chromium.org Review URL: https://codereview.chromium.org/555313002 Cr-Commit-Position: refs/heads/master@{#294072}
* Wire up component cloud policy to device local accounts.joaodasilva@chromium.org2014-06-201-0/+15
| | | | | | | | | | | | | | | | Note: this is a reland of https://codereview.chromium.org/341043005 which was reverted due to memory leaks in tests. Those leaks were fixed in https://codereview.chromium.org/348713004. This enables policy-for-extensions running in Public Sessions, and for extensions running as Kiosk Apps too. TBR=bartfab@chromium.org BUG=224596 Review URL: https://codereview.chromium.org/335113008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278734 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 278518 "Wire up component cloud policy to device local ac..."ricow@chromium.org2014-06-201-15/+0
| | | | | | | | | | | | | | | | | | | | | | This is causing failures on Linux Chromium OS ASan LSan Tests (3), see http://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%20ASan%20LSan%20Tests%20%283%29/builds/1905 > Wire up component cloud policy to device local accounts. > > This enables policy-for-extensions running in Public Sessions, and for > extensions running as Kiosk Apps too. > > TBR=bartfab@chromium.org > BUG=224596 > > Review URL: https://codereview.chromium.org/341043005 TBR=joaodasilva@chromium.org Review URL: https://codereview.chromium.org/343103005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278642 0039d316-1c4b-4281-b951-d872f2087c98
* Wire up component cloud policy to device local accounts.joaodasilva@chromium.org2014-06-191-0/+15
| | | | | | | | | | | | This enables policy-for-extensions running in Public Sessions, and for extensions running as Kiosk Apps too. TBR=bartfab@chromium.org BUG=224596 Review URL: https://codereview.chromium.org/341043005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278518 0039d316-1c4b-4281-b951-d872f2087c98
* Enable Enterprise enrollment on desktop builds.joaodasilva@chromium.org2014-05-021-0/+24
| | | | | | | | | | | | | | | | | | | | | 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
* Revert of Enable Enterprise enrollment on desktop builds. ↵falken@chromium.org2014-05-021-24/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (https://codereview.chromium.org/258743005/) Reason for revert: It seems to have broken the following test from base_unittests and unit_tests on chromium.webkit Android Tests (dbg) builder: PathServiceTest.Override Log: http://build.chromium.org/p/chromium.webkit/builders/Android%20Tests%20%28dbg%29/builds/18922 Snippet from log: C 237s Main [FAIL] PathServiceTest.Override: C 237s Main ../../base/path_service_unittest.cc:184: Failure C 237s Main Value of: PathService::OverrideAndCreateIfNeeded(my_special_key, non_existent, false, false) C 237s Main Actual: true C 237s Main Expected: false Original issue's description: > Enable Enterprise enrollment on desktop builds. > > 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 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267640 TBR=brettw@chromium.org,nkostylev@chromium.org,pastarmovj@chromium.org,satorux@chromium.org,jochen@chromium.org,joaodasilva@chromium.org NOTREECHECKS=true NOTRY=true BUG=240269, 367674 Review URL: https://codereview.chromium.org/265013002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267761 0039d316-1c4b-4281-b951-d872f2087c98
* Enable Enterprise enrollment on desktop builds.joaodasilva@chromium.org2014-05-011-0/+24
| | | | | | | | | | | | | | | | | | | 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/258743005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267640 0039d316-1c4b-4281-b951-d872f2087c98
* Support policies referencing external data for device-local accountsbartfab@chromium.org2013-11-051-3/+9
| | | | | | | | | | | | | | | | This CL adds a DeviceLocalAccountExternalDataService that provides each device-local account with a DeviceLocalAccountExternalDataManager which fetches, caches and retrieves external policy data. BUG=256635 TEST=New browser test R=derat@chromium.org, joaodasilva@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233048 Review URL: https://codereview.chromium.org/25242002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233054 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 233048 "Support policies referencing external data for de..."bartfab@chromium.org2013-11-051-9/+3
| | | | | | | | | | | | | | | | | | | | | | The CL broke compilation on Chrome OS. > Support policies referencing external data for device-local accounts > > This CL adds a DeviceLocalAccountExternalDataService that provides each > device-local account with a DeviceLocalAccountExternalDataManager which > fetches, caches and retrieves external policy data. > > BUG=256635 > TEST=New browser test > R=derat@chromium.org, joaodasilva@chromium.org > > Review URL: https://codereview.chromium.org/25242002 TBR=bartfab@chromium.org Review URL: https://codereview.chromium.org/60683002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233051 0039d316-1c4b-4281-b951-d872f2087c98
* Support policies referencing external data for device-local accountsbartfab@chromium.org2013-11-051-3/+9
| | | | | | | | | | | | | | This CL adds a DeviceLocalAccountExternalDataService that provides each device-local account with a DeviceLocalAccountExternalDataManager which fetches, caches and retrieves external policy data. BUG=256635 TEST=New browser test R=derat@chromium.org, joaodasilva@chromium.org Review URL: https://codereview.chromium.org/25242002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233048 0039d316-1c4b-4281-b951-d872f2087c98
* Cache force-installed apps/extensions in device-local accountsbartfab@chromium.org2013-10-211-0/+6
| | | | | | | | | | | | | | | | This CL adds the DeviceLocalAccountExternalPolicyLoader, a replacement for the ExternalPolicyLoader that caches force-installed apps/extensions, allowing them to be installed offline. The caches for individual accounts are managed by the DeviceLocalAccountPolicyService which makes sure to remove obsolete cache directories. BUG=287802 TEST=Full coverage with new browser and unit tests NOTRY=true Review URL: https://codereview.chromium.org/27548004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229912 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 229896 "Cache force-installed apps/extensions in device-l..."dmichael@chromium.org2013-10-211-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Caused a build failure: http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Builder/builds/56839/steps/compile/logs/stdio ../../chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc: In member function 'void chromeos::DeviceLocalAccountExternalPolicyLoader::UpdateExtensionListFromStore()': ../../chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc:98:3:error: 'ExtensionInstallForcelistPolicyHandler' is not a member of 'policy' ../../chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc:99:7:error: expected ';' before 'policy_handler' ../../chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc:100:7:error: 'policy_handler' was not declared in this scope > Cache force-installed apps/extensions in device-local accounts > > This CL adds the DeviceLocalAccountExternalPolicyLoader, a replacement for > the ExternalPolicyLoader that caches force-installed apps/extensions, > allowing them to be installed offline. The caches for individual accounts > are managed by the DeviceLocalAccountPolicyService which makes sure to > remove obsolete cache directories. > > BUG=287802 > TEST=Full coverage with new browser and unit tests > > Review URL: https://codereview.chromium.org/27548004 TBR=bartfab@chromium.org Review URL: https://codereview.chromium.org/32513006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229897 0039d316-1c4b-4281-b951-d872f2087c98
* Cache force-installed apps/extensions in device-local accountsbartfab@chromium.org2013-10-211-0/+6
| | | | | | | | | | | | | | | This CL adds the DeviceLocalAccountExternalPolicyLoader, a replacement for the ExternalPolicyLoader that caches force-installed apps/extensions, allowing them to be installed offline. The caches for individual accounts are managed by the DeviceLocalAccountPolicyService which makes sure to remove obsolete cache directories. BUG=287802 TEST=Full coverage with new browser and unit tests Review URL: https://codereview.chromium.org/27548004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229896 0039d316-1c4b-4281-b951-d872f2087c98
* Move OS_CHROMEOS-specific paths to chromeos/chromeos_paths.cc.joaodasilva@chromium.org2013-04-231-0/+68
Moving these paths out of chrome/common/chrome_paths.cc makes it possible to get them through the PathService from chromeos/ code without violating layering. For example, the SessionManagerClientStubImpl will be able to get DIR_USER_POLICY_KEYS to simulate the storage of user policy keys. BUG=230349 Review URL: https://chromiumcodereview.appspot.com/14192016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195843 0039d316-1c4b-4281-b951-d872f2087c98