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

Unified Diff: chrome/browser/thumbnails/thumbnail_list_source.h

Issue 1021803002: [Thumbnails] Injecting TopSites into ThumbnailListSource. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | chrome/browser/thumbnails/thumbnail_list_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/thumbnails/thumbnail_list_source.h
diff --git a/chrome/browser/thumbnails/thumbnail_list_source.h b/chrome/browser/thumbnails/thumbnail_list_source.h
index 9421cc60b3fc628b72cf075930bf11e2511dfd36..5fcce121cc88d7a0e2df0d3468eb5c873ab48fcd 100644
--- a/chrome/browser/thumbnails/thumbnail_list_source.h
+++ b/chrome/browser/thumbnails/thumbnail_list_source.h
@@ -17,11 +17,15 @@ class Profile;
namespace base {
class RefCountedMemory;
-}
+} // namespace base
Lei Zhang 2015/03/19 22:22:07 There's no need to comment when the namespace is t
huangs 2015/03/20 00:10:25 Done.
+
+namespace history {
+class TopSites;
+} // namespace history
namespace thumbnails {
class ThumbnailService;
-}
+} // namespace thumbnails
// ThumbnailListSource renders a webpage to list all thumbnails stored in
// TopSites, along with all associated URLs. The thumbnail images are embedded
@@ -54,8 +58,7 @@ class ThumbnailListSource : public content::URLDataSource {
// ThumbnailService.
scoped_refptr<thumbnails::ThumbnailService> thumbnail_service_;
- // Only used when servicing requests on the UI thread.
- Profile* const profile_;
+ scoped_refptr<history::TopSites> top_sites_;
// For callbacks may be run after destruction.
base::WeakPtrFactory<ThumbnailListSource> weak_ptr_factory_;
« no previous file with comments | « no previous file | chrome/browser/thumbnails/thumbnail_list_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698