Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: trunk/src/chromeos/chromeos_paths.cc

Issue 32513006: Revert 229896 "Cache force-installed apps/extensions in device-l..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « trunk/src/chromeos/chromeos_paths.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/chromeos_paths.h" 5 #include "chromeos/chromeos_paths.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
(...skipping 15 matching lines...) Expand all
26 26
27 const base::FilePath::CharType kInstallAttributesFileName[] = 27 const base::FilePath::CharType kInstallAttributesFileName[] =
28 FILE_PATH_LITERAL("/var/run/lockbox/install_attributes.pb"); 28 FILE_PATH_LITERAL("/var/run/lockbox/install_attributes.pb");
29 29
30 const base::FilePath::CharType kUptimeFileName[] = 30 const base::FilePath::CharType kUptimeFileName[] =
31 FILE_PATH_LITERAL("/proc/uptime"); 31 FILE_PATH_LITERAL("/proc/uptime");
32 32
33 const base::FilePath::CharType kUpdateRebootNeededUptimeFile[] = 33 const base::FilePath::CharType kUpdateRebootNeededUptimeFile[] =
34 FILE_PATH_LITERAL("/var/run/chrome/update_reboot_needed_uptime"); 34 FILE_PATH_LITERAL("/var/run/chrome/update_reboot_needed_uptime");
35 35
36 const base::FilePath::CharType kDeviceLocalAccountCacheDir[] =
37 FILE_PATH_LITERAL("/var/cache/device_local_account_extensions");
38
39 bool PathProvider(int key, base::FilePath* result) { 36 bool PathProvider(int key, base::FilePath* result) {
40 switch (key) { 37 switch (key) {
41 case FILE_DEFAULT_APP_ORDER: 38 case FILE_DEFAULT_APP_ORDER:
42 *result = base::FilePath(kDefaultAppOrderFileName); 39 *result = base::FilePath(kDefaultAppOrderFileName);
43 break; 40 break;
44 case DIR_USER_POLICY_KEYS: 41 case DIR_USER_POLICY_KEYS:
45 *result = base::FilePath(kDefaultUserPolicyKeysDir); 42 *result = base::FilePath(kDefaultUserPolicyKeysDir);
46 break; 43 break;
47 case FILE_OWNER_KEY: 44 case FILE_OWNER_KEY:
48 *result = base::FilePath(kOwnerKeyFileName); 45 *result = base::FilePath(kOwnerKeyFileName);
49 break; 46 break;
50 case FILE_INSTALL_ATTRIBUTES: 47 case FILE_INSTALL_ATTRIBUTES:
51 *result = base::FilePath(kInstallAttributesFileName); 48 *result = base::FilePath(kInstallAttributesFileName);
52 break; 49 break;
53 case FILE_UPTIME: 50 case FILE_UPTIME:
54 *result = base::FilePath(kUptimeFileName); 51 *result = base::FilePath(kUptimeFileName);
55 break; 52 break;
56 case FILE_UPDATE_REBOOT_NEEDED_UPTIME: 53 case FILE_UPDATE_REBOOT_NEEDED_UPTIME:
57 *result = base::FilePath(kUpdateRebootNeededUptimeFile); 54 *result = base::FilePath(kUpdateRebootNeededUptimeFile);
58 break; 55 break;
59 case DIR_DEVICE_LOCAL_ACCOUNT_CACHE:
60 *result = base::FilePath(kDeviceLocalAccountCacheDir);
61 break;
62 default: 56 default:
63 return false; 57 return false;
64 } 58 }
65 return true; 59 return true;
66 } 60 }
67 61
68 } // namespace 62 } // namespace
69 63
70 void RegisterPathProvider() { 64 void RegisterPathProvider() {
71 PathService::RegisterProvider(PathProvider, PATH_START, PATH_END); 65 PathService::RegisterProvider(PathProvider, PATH_START, PATH_END);
72 } 66 }
73 67
74 } // namespace chromeos 68 } // namespace chromeos
OLDNEW
« no previous file with comments | « trunk/src/chromeos/chromeos_paths.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698