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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 23498004: Remove page cyclers from chrome binary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index e8612a18a4d7a25953c8afaf9187d781462b4dd1..c519341225e0a61c4e03bec2308f43214b138c3b 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"
@@ -1086,11 +1085,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)
@@ -1099,26 +1093,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.
}

Powered by Google App Engine
This is Rietveld 408576698