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

Unified Diff: remoting/host/policy_watcher.cc

Issue 1888653002: [remoting android] Initialize It2Me host and implement Connect() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase/re-upload since Reitveld is confused 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/it2me/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/policy_watcher.cc
diff --git a/remoting/host/policy_watcher.cc b/remoting/host/policy_watcher.cc
index f114f068fa31c08580f1dcccd10c10df8f3076d7..96727292f7fd98b3b7efd41526da4448bd92a17b 100644
--- a/remoting/host/policy_watcher.cc
+++ b/remoting/host/policy_watcher.cc
@@ -374,6 +374,12 @@ std::unique_ptr<PolicyWatcher> PolicyWatcher::Create(
policy::POLICY_SCOPE_MACHINE));
#elif defined(OS_ANDROID)
NOTIMPLEMENTED();
+ policy::PolicyServiceImpl::Providers providers;
+ std::unique_ptr<policy::PolicyService> owned_policy_service(
+ new policy::PolicyServiceImpl(providers));
+ return base::WrapUnique(new PolicyWatcher(
+ owned_policy_service.get(), std::move(owned_policy_service), nullptr,
+ CreateSchemaRegistry()));
#else
#error OS that is not yet supported by PolicyWatcher code.
#endif
« no previous file with comments | « remoting/host/it2me/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698