Index: chrome/browser/chrome_browser_main.cc |
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc |
index 8f70eff8f12122bb3b98729ee3ddf2fd20dedf1d..26258d6533d490f3c2c7b732ce3b2a83eb7eaf6b 100644 |
--- a/chrome/browser/chrome_browser_main.cc |
+++ b/chrome/browser/chrome_browser_main.cc |
@@ -75,7 +75,6 @@ |
#include "chrome/browser/net/crl_set_fetcher.h" |
#include "chrome/browser/notifications/desktop_notification_service.h" |
#include "chrome/browser/notifications/desktop_notification_service_factory.h" |
-#include "chrome/browser/page_cycler/page_cycler.h" |
#include "chrome/browser/performance_monitor/performance_monitor.h" |
#include "chrome/browser/performance_monitor/startup_timer.h" |
#include "chrome/browser/plugins/plugin_prefs.h" |
@@ -1094,11 +1093,6 @@ void ChromeBrowserMainParts::PreBrowserStart() { |
void ChromeBrowserMainParts::PostBrowserStart() { |
TRACE_EVENT0("startup", "ChromeBrowserMainParts::PostBrowserStart"); |
-#if !defined(OS_ANDROID) |
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kVisitURLs)) |
- RunPageCycler(); |
-#endif |
- |
for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) |
chrome_extra_parts_[i]->PostBrowserStart(); |
#if !defined(OS_ANDROID) |
@@ -1107,26 +1101,6 @@ void ChromeBrowserMainParts::PostBrowserStart() { |
#endif |
} |
-#if !defined(OS_ANDROID) |
-void ChromeBrowserMainParts::RunPageCycler() { |
- CommandLine* command_line = CommandLine::ForCurrentProcess(); |
- Browser* browser = chrome::FindBrowserWithProfile(profile_, |
- chrome::GetActiveDesktop()); |
- DCHECK(browser); |
- PageCycler* page_cycler = NULL; |
- base::FilePath input_file = |
- command_line->GetSwitchValuePath(switches::kVisitURLs); |
- page_cycler = new PageCycler(browser, input_file); |
- page_cycler->set_errors_file( |
- input_file.AddExtension(FILE_PATH_LITERAL(".errors"))); |
- if (command_line->HasSwitch(switches::kRecordStats)) { |
- page_cycler->set_stats_file( |
- command_line->GetSwitchValuePath(switches::kRecordStats)); |
- } |
- page_cycler->Run(); |
-} |
-#endif // !defined(OS_ANDROID) |
- |
void ChromeBrowserMainParts::SetupPlatformFieldTrials() { |
// Base class implementation of this does nothing. |
} |