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

Unified Diff: chrome/browser/policy/chrome_browser_policy_connector.cc

Issue 830193002: Using PolicyServiceWatcher instead of PolicyWatcherLinux/Win/Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 11 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 | « no previous file | chrome/common/chrome_paths.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/chrome_browser_policy_connector.cc
diff --git a/chrome/browser/policy/chrome_browser_policy_connector.cc b/chrome/browser/policy/chrome_browser_policy_connector.cc
index c010dfff450b90fe63dc952d64e8afe0f3e12b5f..e39d0109b4e24c1f16602062e3bd7edb2fb98f8e 100644
--- a/chrome/browser/policy/chrome_browser_policy_connector.cc
+++ b/chrome/browser/policy/chrome_browser_policy_connector.cc
@@ -48,15 +48,6 @@ namespace {
#if defined(OS_MACOSX)
base::FilePath GetManagedPolicyPath() {
- // This constructs the path to the plist file in which Mac OS X stores the
- // managed preference for the application. This is undocumented and therefore
- // fragile, but if it doesn't work out, AsyncPolicyLoader has a task that
- // polls periodically in order to reload managed preferences later even if we
- // missed the change.
- base::FilePath path;
- if (!PathService::Get(chrome::DIR_MANAGED_PREFS, &path))
- return base::FilePath();
-
CFBundleRef bundle(CFBundleGetMainBundle());
if (!bundle)
return base::FilePath();
@@ -65,7 +56,7 @@ base::FilePath GetManagedPolicyPath() {
if (!bundle_id)
return base::FilePath();
- return path.Append(base::SysCFStringRefToUTF8(bundle_id) + ".plist");
+ return policy::PolicyLoaderMac::GetManagedPolicyPath(bundle_id);
}
#endif // defined(OS_MACOSX)
« no previous file with comments | « no previous file | chrome/common/chrome_paths.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698