summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-19 16:03:42 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-19 16:03:42 +0000
commit523623c62f291467769fbb3c0e7fd5c1709b4da1 (patch)
treef7ffe236605e0d56d89bd7c6c5e8785662be166d /chrome/browser/profile.cc
parentd0cc0f3d2c1216d2c2168690f64dc448d3ac9ca8 (diff)
downloadchromium_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/profile.cc')
-rw-r--r--chrome/browser/profile.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc
index 652cc02..c8a1559 100644
--- a/chrome/browser/profile.cc
+++ b/chrome/browser/profile.cc
@@ -37,6 +37,7 @@
#include "chrome/browser/spellcheck_host.h"
#include "chrome/browser/transport_security_persister.h"
#include "chrome/browser/history/history.h"
+#include "chrome/browser/history/top_sites.h"
#include "chrome/browser/host_content_settings_map.h"
#include "chrome/browser/host_zoom_map.h"
#include "chrome/browser/in_process_webkit/webkit_context.h"
@@ -548,6 +549,10 @@ class OffTheRecordProfileImpl : public Profile,
return NULL;
}
+ virtual history::TopSites* GetTopSites() {
+ return NULL;
+ }
+
virtual void MarkAsCleanShutdown() {
}
@@ -1384,6 +1389,14 @@ ThumbnailStore* ProfileImpl::GetThumbnailStore() {
return thumbnail_store_.get();
}
+history::TopSites* ProfileImpl::GetTopSites() {
+ if (!top_sites_.get()) {
+ top_sites_ = new history::TopSites(this);
+ top_sites_->Init();
+ }
+ return top_sites_;
+}
+
void ProfileImpl::ResetTabRestoreService() {
tab_restore_service_ = NULL;
}