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

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 2937133002: Launch browser when --memlog is specified on the command line. (Closed)
Patch Set: Format Created 3 years, 6 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 unified diff | Download patch
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 "chrome/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "ppapi/features/features.h" 10 #include "ppapi/features/features.h"
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 #if defined(OS_WIN) || defined(OS_LINUX) 1122 #if defined(OS_WIN) || defined(OS_LINUX)
1123 extern const char kDisableInputImeAPI[] = "disable-input-ime-api"; 1123 extern const char kDisableInputImeAPI[] = "disable-input-ime-api";
1124 extern const char kEnableInputImeAPI[] = "enable-input-ime-api"; 1124 extern const char kEnableInputImeAPI[] = "enable-input-ime-api";
1125 #endif 1125 #endif
1126 1126
1127 #if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_MACOSX) || \ 1127 #if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_MACOSX) || \
1128 defined(OS_WIN) 1128 defined(OS_WIN)
1129 extern const char kEnableNewAppMenuIcon[] = "enable-new-app-menu-icon"; 1129 extern const char kEnableNewAppMenuIcon[] = "enable-new-app-menu-icon";
1130 #endif 1130 #endif
1131 1131
1132 #if BUILDFLAG(ENABLE_OOP_HEAP_PROFILING)
1133 // Enables the out-of-process memory logging.
1134 const char kMemlog[] = "memlog";
awong 2017/06/14 23:15:19 should these be constexprs in the header now? leg
brettw 2017/06/14 23:23:54 I don't think so, since that will inline them.
1135
1136 // Communicates the pipe name for out-of-process memory logging.
1137 const char kMemlogPipe[] = "memlog-pipe";
1138 #endif
1139
1132 bool ExtensionsDisabled(const base::CommandLine& command_line) { 1140 bool ExtensionsDisabled(const base::CommandLine& command_line) {
1133 return command_line.HasSwitch(switches::kDisableExtensions) || 1141 return command_line.HasSwitch(switches::kDisableExtensions) ||
1134 command_line.HasSwitch(switches::kDisableExtensionsExcept); 1142 command_line.HasSwitch(switches::kDisableExtensionsExcept);
1135 } 1143 }
1136 1144
1137 bool ExtensionsDisabled() { 1145 bool ExtensionsDisabled() {
1138 return ExtensionsDisabled(*base::CommandLine::ForCurrentProcess()); 1146 return ExtensionsDisabled(*base::CommandLine::ForCurrentProcess());
1139 } 1147 }
1140 1148
1141 bool MdFeedbackEnabled() { 1149 bool MdFeedbackEnabled() {
(...skipping 25 matching lines...) Expand all
1167 1175
1168 // ----------------------------------------------------------------------------- 1176 // -----------------------------------------------------------------------------
1169 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. 1177 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE.
1170 // 1178 //
1171 // You were going to just dump your switches here, weren't you? Instead, please 1179 // You were going to just dump your switches here, weren't you? Instead, please
1172 // put them in alphabetical order above, or in order inside the appropriate 1180 // put them in alphabetical order above, or in order inside the appropriate
1173 // ifdef at the bottom. The order should match the header. 1181 // ifdef at the bottom. The order should match the header.
1174 // ----------------------------------------------------------------------------- 1182 // -----------------------------------------------------------------------------
1175 1183
1176 } // namespace switches 1184 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698