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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_ui.cc

Issue 7562019: ntp: remove dead first run code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile fix 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
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.h ('k') | chrome/browser/ui/webui/ntp/ntp_resource_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/ntp/new_tab_ui.cc
diff --git a/chrome/browser/ui/webui/ntp/new_tab_ui.cc b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
index bd1e852b7b2321d215527f74a544b31407a3e73b..4af26deaf1868dddb7fb6fd8911d83540f4ffa0c 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.cc
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
@@ -204,14 +204,6 @@ NewTabUI::NewTabUI(TabContents* contents)
// thumbnails, but also clicks on recently bookmarked.
link_transition_type_ = PageTransition::AUTO_BOOKMARK;
- if (NewTabUI::FirstRunDisabled())
- NewTabHTMLSource::set_first_run(false);
-
- static bool first_view = true;
- if (first_view) {
- first_view = false;
- }
-
if (!GetProfile()->IsOffTheRecord()) {
PrefService* pref_service = GetProfile()->GetPrefs();
if (!NewTabSyncSetupHandler::ShouldShowSyncPromo())
@@ -377,12 +369,6 @@ void NewTabUI::MigrateUserPrefs(PrefService* prefs, int old_pref_version,
}
// static
-bool NewTabUI::FirstRunDisabled() {
- const CommandLine* command_line = CommandLine::ForCurrentProcess();
- return command_line->HasSwitch(switches::kDisableNewTabFirstRun);
-}
-
-// static
void NewTabUI::SetURLTitleAndDirection(DictionaryValue* dictionary,
const string16& title,
const GURL& gurl) {
@@ -435,8 +421,6 @@ void NewTabUI::SetURLTitleAndDirection(DictionaryValue* dictionary,
///////////////////////////////////////////////////////////////////////////////
// NewTabHTMLSource
-bool NewTabUI::NewTabHTMLSource::first_run_ = true;
-
NewTabUI::NewTabHTMLSource::NewTabHTMLSource(Profile* profile)
: DataSource(chrome::kChromeUINewTabHost, MessageLoop::current()),
profile_(profile) {
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.h ('k') | chrome/browser/ui/webui/ntp/ntp_resource_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698