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

Unified Diff: chrome/browser/signin/signin_cookie_changed_subscription.cc

Issue 1112403005: [chrome/browser] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nit Created 5 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/signin/signin_cookie_changed_subscription.cc
diff --git a/chrome/browser/signin/signin_cookie_changed_subscription.cc b/chrome/browser/signin/signin_cookie_changed_subscription.cc
index d4d8012e5f2487a11dbb27f5102ca0bf3fda00be..06d71b0c92928a9d2f492784c8aa9fdb148c15b0 100644
--- a/chrome/browser/signin/signin_cookie_changed_subscription.cc
+++ b/chrome/browser/signin/signin_cookie_changed_subscription.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/signin/signin_cookie_changed_subscription.h"
+#include "base/thread_task_runner_handle.h"
#include "net/cookies/cookie_store.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_getter.h"
@@ -48,8 +49,7 @@ void SigninCookieChangedSubscription::RegisterForCookieChangedNotifications(
// notifications.
net::CookieStore::CookieChangedCallback run_on_current_thread_callback =
base::Bind(&SigninCookieChangedSubscription::RunAsyncOnCookieChanged,
- base::MessageLoopProxy::current(),
- this->AsWeakPtr());
+ base::ThreadTaskRunnerHandle::Get(), this->AsWeakPtr());
base::Closure register_closure =
base::Bind(&RegisterForCookieChangesOnIOThread,
context_getter_,

Powered by Google App Engine
This is Rietveld 408576698