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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/android/content_startup_flags.h" 5 #include "content/browser/android/content_startup_flags.h"
6 6
7 #include "base/base_switches.h"
7 #include "base/command_line.h" 8 #include "base/command_line.h"
8 #include "base/logging.h" 9 #include "base/logging.h"
9 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
10 #include "cc/base/switches.h" 11 #include "cc/base/switches.h"
11 #include "content/public/browser/render_process_host.h" 12 #include "content/public/browser/render_process_host.h"
12 #include "content/public/common/content_constants.h" 13 #include "content/public/common/content_constants.h"
13 #include "content/public/common/content_switches.h" 14 #include "content/public/common/content_switches.h"
14 #include "gpu/command_buffer/service/gpu_switches.h" 15 #include "gpu/command_buffer/service/gpu_switches.h"
15 #include "ui/base/ui_base_switches.h" 16 #include "ui/base/ui_base_switches.h"
16 17
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Disable anti-aliasing. 81 // Disable anti-aliasing.
81 parsed_command_line->AppendSwitch( 82 parsed_command_line->AppendSwitch(
82 cc::switches::kDisableCompositedAntialiasing); 83 cc::switches::kDisableCompositedAntialiasing);
83 84
84 parsed_command_line->AppendSwitch(switches::kUIPrioritizeInGpuProcess); 85 parsed_command_line->AppendSwitch(switches::kUIPrioritizeInGpuProcess);
85 86
86 if (!plugin_descriptor.empty()) { 87 if (!plugin_descriptor.empty()) {
87 parsed_command_line->AppendSwitchNative( 88 parsed_command_line->AppendSwitchNative(
88 switches::kRegisterPepperPlugins, plugin_descriptor); 89 switches::kRegisterPepperPlugins, plugin_descriptor);
89 } 90 }
91
92 // Disable profiler timing by default.
93 if (!parsed_command_line->HasSwitch(switches::kProfilerTiming)) {
94 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.
95 }
90 } 96 }
91 97
92 } // namespace content 98 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698