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

Unified Diff: chrome/browser/sync/profile_sync_auth_provider.cc

Issue 1128523002: Usage of ThreadTaskRunner in lieu of in [chrome/browser/sync],[components/sync_driver] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Comments 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: chrome/browser/sync/profile_sync_auth_provider.cc
diff --git a/chrome/browser/sync/profile_sync_auth_provider.cc b/chrome/browser/sync/profile_sync_auth_provider.cc
index ce701e1584896588c17320837a9b3616385caa81..05f393c5eb77dca358904bd275b9991a5206c7ba 100644
--- a/chrome/browser/sync/profile_sync_auth_provider.cc
+++ b/chrome/browser/sync/profile_sync_auth_provider.cc
@@ -6,8 +6,8 @@
#include "base/bind.h"
#include "base/location.h"
-#include "base/message_loop/message_loop_proxy.h"
#include "base/single_thread_task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
#include "google_apis/gaia/gaia_constants.h"
@@ -54,7 +54,7 @@ void ProfileSyncAuthProvider::SyncThreadProxy::RequestAccessToken(
base::Bind(&ProfileSyncAuthProvider::RequestAccessToken,
provider_impl_,
callback,
- base::MessageLoopProxy::current()));
+ base::ThreadTaskRunnerHandle::Get()));
}
void ProfileSyncAuthProvider::SyncThreadProxy::InvalidateAccessToken(
@@ -132,6 +132,6 @@ scoped_ptr<syncer::SyncAuthProvider>
ProfileSyncAuthProvider::CreateProviderForSyncThread() {
DCHECK(CalledOnValidThread());
scoped_ptr<syncer::SyncAuthProvider> auth_provider(new SyncThreadProxy(
- weak_factory_.GetWeakPtr(), base::MessageLoopProxy::current()));
+ weak_factory_.GetWeakPtr(), base::ThreadTaskRunnerHandle::Get()));
return auth_provider.Pass();
}
« no previous file with comments | « chrome/browser/sync/glue/non_frontend_data_type_controller_unittest.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698