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

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: Fix chrome_frame compile Created 7 years, 3 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 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.
}
« no previous file with comments | « chrome/browser/chrome_browser_main.h ('k') | chrome/browser/extensions/api/tab_capture/tab_capture_performancetest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698