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

Unified Diff: chrome/common/chrome_paths.cc

Issue 2854005: Enable policy support on the Linux platform. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Modify gypi file after removing chrome_paths_unittest. Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/chrome_paths.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_paths.cc
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
index 9dca7e037a6f7a3937abcf9c15581f5dfee7040a..b5a06417c3e7b21c7fb7304288991b9ec48ea78d 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -283,6 +283,18 @@ bool PathProvider(int key, FilePath* result) {
if (!file_util::PathExists(cur)) // we don't want to create this
return false;
break;
+#if !defined(OS_MACOSX) && defined(OS_POSIX)
+ case chrome::DIR_POLICY_FILES: {
+#if defined(GOOGLE_CHROME_BUILD)
+ cur = FilePath(FILE_PATH_LITERAL("/etc/opt/chrome/policies"));
+#else
+ cur = FilePath(FILE_PATH_LITERAL("/etc/chromium/policies"));
+#endif
+ if (!file_util::PathExists(cur)) // we don't want to create this
+ return false;
+ break;
+ }
+#endif
default:
return false;
}
« no previous file with comments | « chrome/common/chrome_paths.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698