Index: remoting/host/policy_watcher.cc |
diff --git a/remoting/host/policy_watcher.cc b/remoting/host/policy_watcher.cc |
index 4026cdd008423f4d94385b5c9664e41e1fe9b444..01acc74651e6b738b0ad50819b66bf3a00ea5af6 100644 |
--- a/remoting/host/policy_watcher.cc |
+++ b/remoting/host/policy_watcher.cc |
@@ -266,8 +266,9 @@ scoped_ptr<PolicyWatcher> PolicyWatcher::Create( |
// Chromium. |
scoped_ptr<policy::AsyncPolicyLoader> policy_loader; |
#if defined(OS_WIN) |
- policy_loader = policy::PolicyLoaderWin::Create( |
- file_task_runner, L"SOFTWARE\\Policies\\Google\\Chrome"); |
+ policy_loader.reset(new policy::PolicyLoaderWin( |
+ file_task_runner, L"SOFTWARE\\Policies\\Google\\Chrome", |
+ nullptr)); // nullptr = don't use GPO / always read from the registry. |
#elif defined(OS_MACOSX) |
CFStringRef bundle_id = CFSTR("com.google.Chrome"); |
policy_loader.reset(new policy::PolicyLoaderMac( |