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

Unified Diff: chrome/test/base/testing_profile.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « chrome/test/base/testing_browser_process.cc ('k') | chromecast/browser/cast_browser_main_parts.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index 78fbd5e84d2dc4efb6a8dd960c0585440878ff54..4be44c5379bfd8f9b4d5ad085a4f516d49bb9d87 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -182,7 +182,7 @@ class TestExtensionURLRequestContextGetter
}
scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner()
const override {
- return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
+ return BrowserThread::GetTaskRunnerForThread(BrowserThread::IO);
}
protected:
@@ -221,10 +221,9 @@ std::unique_ptr<KeyedService> BuildBookmarkModel(
std::unique_ptr<BookmarkModel> bookmark_model(
new BookmarkModel(base::WrapUnique(new ChromeBookmarkClient(
profile, ManagedBookmarkServiceFactory::GetForProfile(profile)))));
- bookmark_model->Load(profile->GetPrefs(),
- profile->GetPath(),
+ bookmark_model->Load(profile->GetPrefs(), profile->GetPath(),
profile->GetIOTaskRunner(),
- content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::GetTaskRunnerForThread(
content::BrowserThread::UI));
return std::move(bookmark_model);
}
@@ -239,8 +238,8 @@ std::unique_ptr<KeyedService> BuildWebDataService(
const base::FilePath& context_path = context->GetPath();
return base::WrapUnique(new WebDataServiceWrapper(
context_path, g_browser_process->GetApplicationLocale(),
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB),
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::UI),
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::DB),
sync_start_util::GetFlareForSyncableService(context_path),
&TestProfileErrorCallback));
}
@@ -953,7 +952,7 @@ net::URLRequestContextGetter* TestingProfile::CreateRequestContext(
content::ProtocolHandlerMap* protocol_handlers,
content::URLRequestInterceptorScopedVector request_interceptors) {
return new net::TestURLRequestContextGetter(
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO));
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
}
net::URLRequestContextGetter*
« no previous file with comments | « chrome/test/base/testing_browser_process.cc ('k') | chromecast/browser/cast_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698