Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // Most of this code is copied from: | 5 // Most of this code is copied from: |
| 6 // src/chrome/browser/policy/asynchronous_policy_loader.{h,cc} | 6 // src/chrome/browser/policy/asynchronous_policy_loader.{h,cc} |
| 7 | 7 |
| 8 #include "remoting/host/policy_watcher.h" | 8 #include "remoting/host/policy_watcher.h" |
| 9 | 9 |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 362 CFStringRef bundle_id = CFSTR("com.google.Chrome"); | 362 CFStringRef bundle_id = CFSTR("com.google.Chrome"); |
| 363 policy_loader.reset(new policy::PolicyLoaderMac( | 363 policy_loader.reset(new policy::PolicyLoaderMac( |
| 364 file_task_runner, | 364 file_task_runner, |
| 365 policy::PolicyLoaderMac::GetManagedPolicyPath(bundle_id), | 365 policy::PolicyLoaderMac::GetManagedPolicyPath(bundle_id), |
| 366 new MacPreferences(), bundle_id)); | 366 new MacPreferences(), bundle_id)); |
| 367 #elif defined(OS_POSIX) && !defined(OS_ANDROID) | 367 #elif defined(OS_POSIX) && !defined(OS_ANDROID) |
| 368 policy_loader.reset(new policy::ConfigDirPolicyLoader( | 368 policy_loader.reset(new policy::ConfigDirPolicyLoader( |
| 369 file_task_runner, | 369 file_task_runner, |
| 370 base::FilePath(FILE_PATH_LITERAL("/etc/opt/chrome/policies")), | 370 base::FilePath(FILE_PATH_LITERAL("/etc/opt/chrome/policies")), |
| 371 policy::POLICY_SCOPE_MACHINE)); | 371 policy::POLICY_SCOPE_MACHINE)); |
| 372 #elif defined(OS_ANDROID) | |
| 373 // TODO(lambroslambrou): Implement this. | |
|
Sergey Ulanov
2016/04/07 00:56:14
NOTIMPLEMENTED()?
Lambros
2016/04/12 21:58:04
Done.
| |
| 372 #else | 374 #else |
| 373 #error OS that is not yet supported by PolicyWatcher code. | 375 #error OS that is not yet supported by PolicyWatcher code. |
| 374 #endif | 376 #endif |
| 375 | 377 |
| 376 return PolicyWatcher::CreateFromPolicyLoader(std::move(policy_loader)); | 378 return PolicyWatcher::CreateFromPolicyLoader(std::move(policy_loader)); |
| 377 #endif // !(OS_CHROMEOS) | 379 #endif // !(OS_CHROMEOS) |
| 378 } | 380 } |
| 379 | 381 |
| 380 } // namespace remoting | 382 } // namespace remoting |
| OLD | NEW |