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

Unified Diff: chrome/browser/search/suggestions/suggestions_ui.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 | « no previous file | chrome/browser/search/thumbnail_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/suggestions/suggestions_ui.cc
diff --git a/chrome/browser/search/suggestions/suggestions_ui.cc b/chrome/browser/search/suggestions/suggestions_ui.cc
index f126ec8b18411e5ca1e68654dbdd642a16a4bfec..17cf2ad978df1bfd02bd8a583097318a2665cde1 100644
--- a/chrome/browser/search/suggestions/suggestions_ui.cc
+++ b/chrome/browser/search/suggestions/suggestions_ui.cc
@@ -123,7 +123,7 @@ class SuggestionsSource : public content::URLDataSource {
const content::ResourceRequestInfo::WebContentsGetter& wc_getter,
const content::URLDataSource::GotDataCallback& callback) override;
std::string GetMimeType(const std::string& path) const override;
- base::MessageLoop* MessageLoopForRequestPath(
+ scoped_refptr<base::SingleThreadTaskRunner> TaskRunnerForRequestPath(
const std::string& path) const override;
private:
@@ -232,10 +232,10 @@ std::string SuggestionsSource::GetMimeType(const std::string& path) const {
return "text/html";
}
-base::MessageLoop* SuggestionsSource::MessageLoopForRequestPath(
- const std::string& path) const {
+scoped_refptr<base::SingleThreadTaskRunner>
+SuggestionsSource::TaskRunnerForRequestPath(const std::string& path) const {
// This can be accessed from the IO thread.
- return content::URLDataSource::MessageLoopForRequestPath(path);
+ return content::URLDataSource::TaskRunnerForRequestPath(path);
}
void SuggestionsSource::OnThumbnailsFetched(RequestContext* context) {
« no previous file with comments | « no previous file | chrome/browser/search/thumbnail_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698