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

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

Issue 10831359: Make the mobile welcome page the only default most visited page (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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') | no next file » | 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 67154b43958546c0e5715a3cacf94e781b8f98d2..0b841c7baa2080a84b4a0c871e7cca6f7a95d482 100644
--- a/chrome/browser/history/top_sites.cc
+++ b/chrome/browser/history/top_sites.cc
@@ -77,14 +77,20 @@ const TopSites::PrepopulatedPage kPrepopulatedPages[] = {
{ IDS_CHROMEOS_WELCOME_URL, IDS_NEW_TAB_CHROME_WELCOME_PAGE_TITLE,
IDR_PRODUCT_LOGO_16, IDR_NEWTAB_CHROMEOS_WELCOME_PAGE_THUMBNAIL,
SkColorSetRGB(0, 147, 60) },
+#elif defined(OS_ANDROID)
+ { IDS_MOBILE_WELCOME_URL, IDS_NEW_TAB_CHROME_WELCOME_PAGE_TITLE,
+ IDR_PRODUCT_LOGO_16, IDR_NEWTAB_CHROME_WELCOME_PAGE_THUMBNAIL,
+ SkColorSetRGB(0, 147, 60) }
#else
{ 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) },
#endif
+#if !defined(OS_ANDROID)
{ IDS_WEBSTORE_URL, IDS_EXTENSION_WEB_STORE_TITLE,
IDR_WEBSTORE_ICON_16, IDR_NEWTAB_WEBSTORE_THUMBNAIL,
SkColorSetRGB(63, 132, 197) }
+#endif
};
namespace {
@@ -102,6 +108,9 @@ class LoadThumbnailsFromHistoryTask : public HistoryDBTask {
// l10n_util isn't thread safe, so cache for use on the db thread.
ignore_urls_.insert(l10n_util::GetStringUTF8(IDS_CHROME_WELCOME_URL));
ignore_urls_.insert(l10n_util::GetStringUTF8(IDS_WEBSTORE_URL));
+#if defined(OS_ANDROID)
+ ignore_urls_.insert(l10n_util::GetStringUTF8(IDS_MOBILE_WELCOME_URL));
+#endif
}
virtual bool RunOnDBThread(history::HistoryBackend* backend,
« no previous file with comments | « chrome/browser/history/top_sites.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698