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

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: Add resources_android.cc 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
« no previous file with comments | « remoting/host/pairing_registry_delegate_android.cc ('k') | remoting/host/resources_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 CFStringRef bundle_id = CFSTR("com.google.Chrome"); 365 CFStringRef bundle_id = CFSTR("com.google.Chrome");
366 policy_loader.reset(new policy::PolicyLoaderMac( 366 policy_loader.reset(new policy::PolicyLoaderMac(
367 file_task_runner, 367 file_task_runner,
368 policy::PolicyLoaderMac::GetManagedPolicyPath(bundle_id), 368 policy::PolicyLoaderMac::GetManagedPolicyPath(bundle_id),
369 new MacPreferences(), bundle_id)); 369 new MacPreferences(), bundle_id));
370 #elif defined(OS_POSIX) && !defined(OS_ANDROID) 370 #elif defined(OS_POSIX) && !defined(OS_ANDROID)
371 policy_loader.reset(new policy::ConfigDirPolicyLoader( 371 policy_loader.reset(new policy::ConfigDirPolicyLoader(
372 file_task_runner, 372 file_task_runner,
373 base::FilePath(FILE_PATH_LITERAL("/etc/opt/chrome/policies")), 373 base::FilePath(FILE_PATH_LITERAL("/etc/opt/chrome/policies")),
374 policy::POLICY_SCOPE_MACHINE)); 374 policy::POLICY_SCOPE_MACHINE));
375 #elif defined(OS_ANDROID)
376 NOTIMPLEMENTED();
375 #else 377 #else
376 #error OS that is not yet supported by PolicyWatcher code. 378 #error OS that is not yet supported by PolicyWatcher code.
377 #endif 379 #endif
378 380
379 return PolicyWatcher::CreateFromPolicyLoader(std::move(policy_loader)); 381 return PolicyWatcher::CreateFromPolicyLoader(std::move(policy_loader));
380 #endif // !(OS_CHROMEOS) 382 #endif // !(OS_CHROMEOS)
381 } 383 }
382 384
383 } // namespace remoting 385 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/pairing_registry_delegate_android.cc ('k') | remoting/host/resources_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698