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

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

Issue 815983002: Topsites become keyedService based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove extra inclusion from testing_profile.h 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..af762ec1e3a73f958755500790962b7064dfd9eb 100644
--- a/chrome/browser/history/top_sites.cc
+++ b/chrome/browser/history/top_sites.cc
@@ -5,7 +5,6 @@
#include "chrome/browser/history/top_sites.h"
#include "base/strings/string_util.h"
-#include "chrome/browser/history/top_sites_impl.h"
#include "chrome/grit/chromium_strings.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/locale_settings.h"
@@ -15,22 +14,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