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

Unified Diff: chrome/browser/search/thumbnail_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 | « chrome/browser/search/thumbnail_source.h ('k') | chrome/browser/thumbnails/thumbnail_list_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/thumbnail_source.cc
diff --git a/chrome/browser/search/thumbnail_source.cc b/chrome/browser/search/thumbnail_source.cc
index 295d3264577943dba2e2076002c1e8097b18382d..26afe8922eabb198f196c6bf40fd4fe230f8c09d 100644
--- a/chrome/browser/search/thumbnail_source.cc
+++ b/chrome/browser/search/thumbnail_source.cc
@@ -79,13 +79,13 @@ std::string ThumbnailSource::GetMimeType(const std::string&) const {
return "image/png";
}
-base::MessageLoop* ThumbnailSource::MessageLoopForRequestPath(
- const std::string& path) const {
+scoped_refptr<base::SingleThreadTaskRunner>
+ThumbnailSource::TaskRunnerForRequestPath(const std::string& path) const {
// TopSites can be accessed from the IO thread. Otherwise, the URLs should be
// accessed on the UI thread.
return thumbnail_service_.get()
? nullptr
- : content::URLDataSource::MessageLoopForRequestPath(path);
+ : content::URLDataSource::TaskRunnerForRequestPath(path);
}
bool ThumbnailSource::ShouldServiceRequest(
« no previous file with comments | « chrome/browser/search/thumbnail_source.h ('k') | chrome/browser/thumbnails/thumbnail_list_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698