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

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

Issue 6283001: Remove TopSites::IsEnabled() as well as related dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
Index: chrome/browser/history/top_sites.cc
diff --git a/chrome/browser/history/top_sites.cc b/chrome/browser/history/top_sites.cc
index 16355230338593dad9680302702a82e8f1541f6a..a9b821b2b74f910ff2ff8ce9def191da90494cbd 100644
--- a/chrome/browser/history/top_sites.cc
+++ b/chrome/browser/history/top_sites.cc
@@ -153,14 +153,6 @@ TopSites::TopSites(Profile* profile)
GetMutableDictionary(prefs::kNTPMostVisitedPinnedURLs);
}
-// static
-bool TopSites::IsEnabled() {
- std::string switch_value =
- CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
- switches::kEnableTopSites);
- return switch_value.empty() || switch_value == "true";
-}
-
void TopSites::Init(const FilePath& db_name) {
backend_->Init(db_name);
backend_->GetMostVisitedThumbnails(

Powered by Google App Engine
This is Rietveld 408576698