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

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

Issue 7600013: ntp4: make default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit test failures Created 9 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
Index: chrome/browser/history/top_sites.cc
diff --git a/chrome/browser/history/top_sites.cc b/chrome/browser/history/top_sites.cc
index 168692ccc59e975936332dd763f82681b6c6da63..8766e15ae3db3375c8f485f06aa3763de1624466 100644
--- a/chrome/browser/history/top_sites.cc
+++ b/chrome/browser/history/top_sites.cc
@@ -7,7 +7,6 @@
#include <algorithm>
#include <set>
-#include "base/command_line.h"
#include "base/logging.h"
#include "base/md5.h"
#include "base/string_util.h"
@@ -22,8 +21,8 @@
#include "chrome/browser/prefs/scoped_user_pref_update.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/ntp/most_visited_handler.h"
+#include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
#include "chrome/common/chrome_notification_types.h"
-#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/thumbnail_score.h"
#include "content/browser/browser_thread.h"
@@ -652,8 +651,7 @@ MostVisitedURLList TopSites::GetPrepopulatePages() {
MostVisitedURL& url = urls[i];
url.url = GURL(l10n_util::GetStringUTF8(kPrepopulatePageIDs[i]));
url.redirects.push_back(url.url);
- url.favicon_url =
- CommandLine::ForCurrentProcess()->HasSwitch(switches::kNewTabPage4) ?
+ url.favicon_url = NewTabUI::Ntp4Enabled() ?
GURL(kNewPrepopulateFaviconURLs[i]) :
GURL(kPrepopulateFaviconURLs[i]);
url.title = l10n_util::GetStringUTF16(kPrepopulateTitleIDs[i]);
« no previous file with comments | « chrome/browser/extensions/apps_promo.cc ('k') | chrome/browser/ui/cocoa/browser_window_controller_private.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698