summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/tab_contents.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents/tab_contents.cc')
-rw-r--r--chrome/browser/tab_contents/tab_contents.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 1f7dd3d..9d1a558 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -36,6 +36,7 @@
#include "chrome/browser/download/download_request_manager.h"
#include "chrome/browser/external_protocol_handler.h"
#include "chrome/browser/extensions/extensions_service.h"
+#include "chrome/browser/history/top_sites.h"
#include "chrome/browser/favicon_service.h"
#include "chrome/browser/find_bar_state.h"
#include "chrome/browser/google_util.h"
@@ -2407,10 +2408,9 @@ void TabContents::UpdateThumbnail(const GURL& url,
const SkBitmap& bitmap,
const ThumbnailScore& score) {
// Tell History about this thumbnail
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kThumbnailStore)) {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kTopSites)) {
if (!profile()->IsOffTheRecord())
- profile()->GetThumbnailStore()->SetPageThumbnail(url, bitmap,
- score, true);
+ profile()->GetTopSites()->SetPageThumbnail(url, bitmap, score);
} else {
HistoryService* hs;
if (!profile()->IsOffTheRecord() &&