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

Unified Diff: components/policy/core/common/cloud/cloud_policy_validator.cc

Issue 1144153004: components: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 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
Index: components/policy/core/common/cloud/cloud_policy_validator.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_validator.cc b/components/policy/core/common/cloud/cloud_policy_validator.cc
index db015fd0ce75b3c52a6febb2e5b84b73e7a534a5..29810b25ca0469e8965d301b985cca0662cb014d 100644
--- a/components/policy/core/common/cloud/cloud_policy_validator.cc
+++ b/components/policy/core/common/cloud/cloud_policy_validator.cc
@@ -5,11 +5,12 @@
#include "components/policy/core/common/cloud/cloud_policy_validator.h"
#include "base/bind_helpers.h"
-#include "base/message_loop/message_loop.h"
+#include "base/location.h"
#include "base/metrics/histogram.h"
#include "base/sequenced_task_runner.h"
#include "base/single_thread_task_runner.h"
#include "base/stl_util.h"
+#include "base/thread_task_runner_handle.h"
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
#include "crypto/signature_verifier.h"
#include "google_apis/gaia/gaia_auth_util.h"
@@ -185,8 +186,7 @@ void CloudPolicyValidatorBase::PostValidationTask(
FROM_HERE,
base::Bind(&CloudPolicyValidatorBase::PerformValidation,
base::Passed(scoped_ptr<CloudPolicyValidatorBase>(this)),
- base::MessageLoop::current()->message_loop_proxy(),
- completion_callback));
+ base::ThreadTaskRunnerHandle::Get(), completion_callback));
}
// static

Powered by Google App Engine
This is Rietveld 408576698