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

Unified Diff: chrome/browser/profiles/profile_impl_io_data.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/profiles/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index 4026f4baed35e5d79f894c6b64c9a49820ee5bde..d8854e6889ab738600bccb9a7c1b9c2a825d8d87 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -331,11 +331,8 @@ void ProfileImplIOData::InitializeInternal(
IOThread* const io_thread = profile_params->io_thread;
IOThread::Globals* const io_thread_globals = io_thread->globals();
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
- // Only allow Record Mode if we are in a Debug build or where we are running
- // a cycle, and the user has limited control.
bool record_mode = command_line.HasSwitch(switches::kRecordMode) &&
- (chrome::kRecordModeEnabled ||
- command_line.HasSwitch(switches::kVisitURLs));
+ chrome::kRecordModeEnabled;
bool playback_mode = command_line.HasSwitch(switches::kPlaybackMode);
network_delegate()->set_predictor(predictor_.get());
@@ -523,11 +520,8 @@ ProfileImplIOData::InitializeAppRequestContext(
partition_descriptor.path.Append(chrome::kCacheDirname);
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
- // Only allow Record Mode if we are in a Debug build or where we are running
- // a cycle, and the user has limited control.
bool record_mode = command_line.HasSwitch(switches::kRecordMode) &&
- (chrome::kRecordModeEnabled ||
- command_line.HasSwitch(switches::kVisitURLs));
+ chrome::kRecordModeEnabled;
bool playback_mode = command_line.HasSwitch(switches::kPlaybackMode);
// Use a separate HTTP disk cache for isolated apps.

Powered by Google App Engine
This is Rietveld 408576698