Chromium Code Reviews| 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_; |