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

Unified Diff: content/public/browser/url_data_source.cc

Issue 2476433002: Replace URLDataSource::MessageLoopForRequestPath() with TaskRunnerForRequestPath(). (Closed)
Patch Set: rebase off local branch Created 4 years, 1 month 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 | « content/public/browser/url_data_source.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/url_data_source.cc
diff --git a/content/public/browser/url_data_source.cc b/content/public/browser/url_data_source.cc
index 7933952f34432ea36e5e2940fcbd6e49e211dd80..7bcbe1d2eb04d80273f628664c7c380d10afab7f 100644
--- a/content/public/browser/url_data_source.cc
+++ b/content/public/browser/url_data_source.cc
@@ -16,9 +16,9 @@ void URLDataSource::Add(BrowserContext* browser_context,
URLDataManager::AddDataSource(browser_context, source);
}
-base::MessageLoop* URLDataSource::MessageLoopForRequestPath(
- const std::string& path) const {
- return BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::UI);
+scoped_refptr<base::SingleThreadTaskRunner>
+URLDataSource::TaskRunnerForRequestPath(const std::string& path) const {
+ return BrowserThread::GetTaskRunnerForThread(BrowserThread::UI);
}
bool URLDataSource::ShouldReplaceExistingSource() const {
« no previous file with comments | « content/public/browser/url_data_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698