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

Side by Side Diff: remoting/host/policy_watcher.cc

Issue 1863933002: [remoting android] Add and build host code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@android-host-add-native
Patch Set: Created 4 years, 8 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698