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

Unified Diff: chrome/browser/policy/policy_service_stub.cc

Issue 10236003: Added RefreshPolicies to PolicyService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromeos build (this time I mean it) Created 8 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
Index: chrome/browser/policy/policy_service_stub.cc
diff --git a/chrome/browser/policy/policy_service_stub.cc b/chrome/browser/policy/policy_service_stub.cc
index 0bbfc631982e0895478924dd9ca6892abae846d6..7af694494b5131a9c59ccfc4daf17675255c90b6 100644
--- a/chrome/browser/policy/policy_service_stub.cc
+++ b/chrome/browser/policy/policy_service_stub.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/policy/policy_service_stub.h"
+#include "base/message_loop.h"
+
namespace policy {
PolicyServiceStub::PolicyServiceStub() {}
@@ -28,4 +30,9 @@ bool PolicyServiceStub::IsInitializationComplete() const {
return true;
}
+void RefreshPolicies(const base::Closure& callback) {
+ if (!callback.is_null())
+ MessageLoop::current()->PostTask(FROM_HERE, callback);
Mattias Nissler (ping if slow) 2012/04/27 09:03:27 Any reason to not directly invoke the callback? Th
Joao da Silva 2012/04/27 11:24:12 In this case it doesn't matter. I was concerned wi
+}
+
} // namespace policy

Powered by Google App Engine
This is Rietveld 408576698