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

Unified Diff: components/signin/core/browser/test_signin_client.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/signin/core/browser/test_signin_client.cc
diff --git a/components/signin/core/browser/test_signin_client.cc b/components/signin/core/browser/test_signin_client.cc
index dd52bb2a36da0ca80711bfcbe3bc170798ce4eb7..21cbdc28388142c482046dc2fd570ba687f9c7cd 100644
--- a/components/signin/core/browser/test_signin_client.cc
+++ b/components/signin/core/browser/test_signin_client.cc
@@ -5,6 +5,7 @@
#include "components/signin/core/browser/test_signin_client.h"
#include "base/logging.h"
+#include "base/thread_task_runner_handle.h"
#include "components/signin/core/browser/webdata/token_service_table.h"
#include "components/webdata/common/web_data_service_base.h"
#include "components/webdata/common/web_database_service.h"
@@ -16,7 +17,7 @@
TestSigninClient::TestSigninClient()
: request_context_(new net::TestURLRequestContextGetter(
- base::MessageLoopProxy::current())),
+ base::ThreadTaskRunnerHandle::Get())),
pref_service_(NULL),
are_signin_cookies_allowed_(true) {
LoadDatabase();
@@ -65,15 +66,14 @@ void TestSigninClient::LoadDatabase() {
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
base::FilePath path = temp_dir_.path().AppendASCII("TestWebDB");
scoped_refptr<WebDatabaseService> web_database =
- new WebDatabaseService(path,
- base::MessageLoopProxy::current(),
- base::MessageLoopProxy::current());
+ new WebDatabaseService(path, base::ThreadTaskRunnerHandle::Get(),
+ base::ThreadTaskRunnerHandle::Get());
web_database->AddTable(scoped_ptr<WebDatabaseTable>(new TokenServiceTable()));
web_database->LoadDatabase();
- database_ = new TokenWebData(web_database,
- base::MessageLoopProxy::current(),
- base::MessageLoopProxy::current(),
- WebDataServiceBase::ProfileErrorCallback());
+ database_ =
+ new TokenWebData(web_database, base::ThreadTaskRunnerHandle::Get(),
+ base::ThreadTaskRunnerHandle::Get(),
+ WebDataServiceBase::ProfileErrorCallback());
database_->Init();
}

Powered by Google App Engine
This is Rietveld 408576698