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

Unified Diff: content/browser/android/content_startup_flags.cc

Issue 99343002: Disable timing from chrome://profiler on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Follow review Created 7 years 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: content/browser/android/content_startup_flags.cc
diff --git a/content/browser/android/content_startup_flags.cc b/content/browser/android/content_startup_flags.cc
index 636a1980c23ed3fc66158708fb0080015d1181ae..6d86d8fbdb1b8bfe5585c581fd897a17ef33989e 100644
--- a/content/browser/android/content_startup_flags.cc
+++ b/content/browser/android/content_startup_flags.cc
@@ -4,6 +4,7 @@
#include "content/browser/android/content_startup_flags.h"
+#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
@@ -87,6 +88,11 @@ void SetContentCommandLineFlags(int max_render_process_count,
parsed_command_line->AppendSwitchNative(
switches::kRegisterPepperPlugins, plugin_descriptor);
}
+
+ // Disable profiler timing by default.
+ if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) {
+ parsed_command_line->AppendSwitchASCII(switches::kProfilerTiming, "0");
Mark Mentovai 2013/12/05 23:54:04 Since you’ve used "0" as the magic value in a coup
qsr 2013/12/06 14:29:43 Done.
+ }
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698