diff options
Diffstat (limited to 'chrome/browser/tab_contents/tab_contents.cc')
-rw-r--r-- | chrome/browser/tab_contents/tab_contents.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc index c710191..c7e68ea 100644 --- a/chrome/browser/tab_contents/tab_contents.cc +++ b/chrome/browser/tab_contents/tab_contents.cc @@ -2566,11 +2566,8 @@ void TabContents::UpdateThumbnail(const GURL& url, const ThumbnailScore& score) { // Tell History about this thumbnail if (history::TopSites::IsEnabled()) { - if (!profile()->IsOffTheRecord()) { - history::TopSites* ts = profile()->GetTopSites(); - if (ts) - ts->SetPageThumbnail(url, bitmap, score); - } + if (!profile()->IsOffTheRecord()) + profile()->GetTopSites()->SetPageThumbnail(url, bitmap, score); } else { HistoryService* hs; if (!profile()->IsOffTheRecord() && |