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

Unified Diff: google_apis/gaia/oauth2_access_token_fetcher_immediate_error.cc

Issue 2083383002: Remove calls to deprecated MessageLoop methods in google_apis. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: manual change Created 4 years, 6 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 | « no previous file | google_apis/gaia/oauth2_token_service_request_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/oauth2_access_token_fetcher_immediate_error.cc
diff --git a/google_apis/gaia/oauth2_access_token_fetcher_immediate_error.cc b/google_apis/gaia/oauth2_access_token_fetcher_immediate_error.cc
index d4bb79dea6a03f0171f24c1a3049f640e4b65309..2259661932af403deee178041f7b55e142c8a9fe 100644
--- a/google_apis/gaia/oauth2_access_token_fetcher_immediate_error.cc
+++ b/google_apis/gaia/oauth2_access_token_fetcher_immediate_error.cc
@@ -5,16 +5,14 @@
#include "google_apis/gaia/oauth2_access_token_fetcher_immediate_error.h"
#include "base/bind.h"
-#include "base/message_loop/message_loop.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "google_apis/gaia/google_service_auth_error.h"
OAuth2AccessTokenFetcherImmediateError::FailCaller::FailCaller(
OAuth2AccessTokenFetcherImmediateError* fetcher)
: fetcher_(fetcher) {
- base::MessageLoop* looper = base::MessageLoop::current();
- DCHECK(looper);
- looper->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(&OAuth2AccessTokenFetcherImmediateError::FailCaller::run,
this));
« no previous file with comments | « no previous file | google_apis/gaia/oauth2_token_service_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698