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

Unified Diff: chrome/browser/history/top_sites.cc

Issue 861273002: Make TopSites a RefcountedKeyedService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win compilation Created 5 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 | « chrome/browser/history/top_sites.h ('k') | chrome/browser/history/top_sites_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/top_sites.cc
diff --git a/chrome/browser/history/top_sites.cc b/chrome/browser/history/top_sites.cc
index 2186a2626c9fd52fb82e68f6afb8c1db7fe1e85d..de466ee473fd3229e242330b9bfdc7aac142bedf 100644
--- a/chrome/browser/history/top_sites.cc
+++ b/chrome/browser/history/top_sites.cc
@@ -15,22 +15,19 @@ namespace history {
const TopSites::PrepopulatedPage kPrepopulatedPages[] = {
#if !defined(OS_ANDROID)
- { IDS_CHROME_WELCOME_URL, IDS_NEW_TAB_CHROME_WELCOME_PAGE_TITLE,
- IDR_PRODUCT_LOGO_16, IDR_NEWTAB_CHROME_WELCOME_PAGE_THUMBNAIL,
- SkColorSetRGB(0, 147, 60) },
- { IDS_WEBSTORE_URL, IDS_EXTENSION_WEB_STORE_TITLE,
- IDR_WEBSTORE_ICON_16, IDR_NEWTAB_WEBSTORE_THUMBNAIL,
- SkColorSetRGB(63, 132, 197) }
+ {IDS_CHROME_WELCOME_URL,
+ IDS_NEW_TAB_CHROME_WELCOME_PAGE_TITLE,
+ IDR_PRODUCT_LOGO_16,
+ IDR_NEWTAB_CHROME_WELCOME_PAGE_THUMBNAIL,
+ SkColorSetRGB(0, 147, 60)},
+ {IDS_WEBSTORE_URL,
+ IDS_EXTENSION_WEB_STORE_TITLE,
+ IDR_WEBSTORE_ICON_16,
+ IDR_NEWTAB_WEBSTORE_THUMBNAIL,
+ SkColorSetRGB(63, 132, 197)}
#endif
};
-// static
-TopSites* TopSites::Create(Profile* profile, const base::FilePath& db_name) {
- TopSitesImpl* top_sites_impl = new TopSitesImpl(profile);
- top_sites_impl->Init(db_name);
- return top_sites_impl;
-}
-
TopSites::TopSites() {
}
« no previous file with comments | « chrome/browser/history/top_sites.h ('k') | chrome/browser/history/top_sites_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698