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

Side by Side Diff: remoting/host/policy_hack/policy_watcher_mac.mm

Issue 639233002: Remote assistance on Chrome OS Part IV - It2MeHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build error on ozone Created 6 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "remoting/host/policy_hack/policy_watcher.h" 5 #include "remoting/host/policy_hack/policy_watcher.h"
6 6
7 #include <CoreFoundation/CoreFoundation.h> 7 #include <CoreFoundation/CoreFoundation.h>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/mac/foundation_util.h" 10 #include "base/mac/foundation_util.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // Set policy. Policy must be set (even if it is empty) so that the 76 // Set policy. Policy must be set (even if it is empty) so that the
77 // default policy is picked up the first time reload is called. 77 // default policy is picked up the first time reload is called.
78 UpdatePolicies(&policy); 78 UpdatePolicies(&policy);
79 79
80 // Reschedule task. 80 // Reschedule task.
81 ScheduleFallbackReloadTask(); 81 ScheduleFallbackReloadTask();
82 } 82 }
83 }; 83 };
84 84
85 PolicyWatcher* PolicyWatcher::Create( 85 scoped_ptr<PolicyWatcher> PolicyWatcher::Create(
86 scoped_refptr<base::SingleThreadTaskRunner> task_runner) { 86 policy::PolicyService* policy_service,
87 return new PolicyWatcherMac(task_runner); 87 scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
88 return make_scoped_ptr(new PolicyWatcherMac(task_runner));
88 } 89 }
89 90
90 } // namespace policy_hack 91 } // namespace policy_hack
91 } // namespace remoting 92 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/policy_hack/policy_watcher_linux.cc ('k') | remoting/host/policy_hack/policy_watcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698