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

Unified Diff: chrome/browser/dom_ui/dom_ui_thumbnail_source.h

Issue 6283001: Remove TopSites::IsEnabled() as well as related dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove OnThumbnailDataAvailable Created 9 years, 11 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/dom_ui/dom_ui_thumbnail_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/dom_ui_thumbnail_source.h
diff --git a/chrome/browser/dom_ui/dom_ui_thumbnail_source.h b/chrome/browser/dom_ui/dom_ui_thumbnail_source.h
index 8dd3a2d17144592381e267c7462865e83df60baf..57a1187fc8478c96f4ab7b97346dc8899c6ab207 100644
--- a/chrome/browser/dom_ui/dom_ui_thumbnail_source.h
+++ b/chrome/browser/dom_ui/dom_ui_thumbnail_source.h
@@ -10,9 +10,8 @@
#include "base/basictypes.h"
#include "base/ref_counted.h"
+#include "base/ref_counted_memory.h"
#include "chrome/browser/dom_ui/chrome_url_data_manager.h"
-#include "chrome/browser/history/history.h"
-#include "chrome/common/notification_registrar.h"
class Profile;
@@ -36,10 +35,6 @@ class DOMUIThumbnailSource : public ChromeURLDataManager::DataSource {
virtual MessageLoop* MessageLoopForRequestPath(const std::string& path) const;
- // Called when thumbnail data is available from the history backend.
- void OnThumbnailDataAvailable(HistoryService::Handle request_handle,
- scoped_refptr<RefCountedBytes> data);
-
private:
virtual ~DOMUIThumbnailSource();
@@ -48,13 +43,11 @@ class DOMUIThumbnailSource : public ChromeURLDataManager::DataSource {
Profile* profile_;
- CancelableRequestConsumerT<int, 0> cancelable_consumer_;
-
// Raw PNG representation of the thumbnail to show when the thumbnail
// database doesn't have a thumbnail for a webpage.
scoped_refptr<RefCountedMemory> default_thumbnail_;
- // TopSites. If non-null we're using TopSites.
+ // TopSites.
scoped_refptr<history::TopSites> top_sites_;
DISALLOW_COPY_AND_ASSIGN(DOMUIThumbnailSource);
« no previous file with comments | « no previous file | chrome/browser/dom_ui/dom_ui_thumbnail_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698