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

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

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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 | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/policy/policy_service_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/policy_service_impl.cc
diff --git a/chrome/browser/policy/policy_service_impl.cc b/chrome/browser/policy/policy_service_impl.cc
index 2cf3734a93b7e0d93b3d610d32749882f1bc2a70..93022691a50437209ea1ea70c536ffcf5a920669 100644
--- a/chrome/browser/policy/policy_service_impl.cc
+++ b/chrome/browser/policy/policy_service_impl.cc
@@ -120,7 +120,7 @@ void PolicyServiceImpl::NotifyNamespaceUpdated(
const PolicyMap& current) {
// If running a unit test that hasn't setup a MessageLoop, don't send any
// notifications.
- if (!MessageLoop::current())
+ if (!base::MessageLoop::current())
return;
// Don't queue up a task if we have no observers - that way Observers added
@@ -132,7 +132,7 @@ void PolicyServiceImpl::NotifyNamespaceUpdated(
// call to MergeAndTriggerUpdates() by modifying policy.
scoped_ptr<PolicyChangeInfo> changes(
new PolicyChangeInfo(ns, previous, current));
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&PolicyServiceImpl::NotifyNamespaceUpdatedTask,
weak_ptr_factory_.GetWeakPtr(),
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/policy/policy_service_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698