diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-19 16:03:42 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-19 16:03:42 +0000 |
commit | 523623c62f291467769fbb3c0e7fd5c1709b4da1 (patch) | |
tree | f7ffe236605e0d56d89bd7c6c5e8785662be166d /chrome/browser/tab_contents/tab_contents.cc | |
parent | d0cc0f3d2c1216d2c2168690f64dc448d3ac9ca8 (diff) | |
download | chromium_src-523623c62f291467769fbb3c0e7fd5c1709b4da1.zip chromium_src-523623c62f291467769fbb3c0e7fd5c1709b4da1.tar.gz chromium_src-523623c62f291467769fbb3c0e7fd5c1709b4da1.tar.bz2 |
Add command line flag --top-sites to replace the thumbnail store flag.
Use the flag for querying for thumbnails.
Add timer to update TopSites (every second for now).
BUG=None
TEST='chrome --top-sites'
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47671 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/tab_contents.cc')
-rw-r--r-- | chrome/browser/tab_contents/tab_contents.cc | 6 |
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() && |