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

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

Issue 2389193004: Always use ChannelMojo for content child processes. (Closed)
Patch Set: Created 4 years, 2 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/crash_keys.h" 5 #include "chrome/common/crash_keys.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 "base/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/strings/string_split.h" 12 #include "base/strings/string_split.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/strings/stringprintf.h" 14 #include "base/strings/stringprintf.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "chrome/common/chrome_switches.h" 16 #include "chrome/common/chrome_switches.h"
17 #include "components/flags_ui/flags_ui_switches.h" 17 #include "components/flags_ui/flags_ui_switches.h"
18 #include "content/public/common/content_switches.h" 18 #include "content/public/common/content_switches.h"
19 #include "ipc/ipc_switches.h"
20 19
21 #if defined(OS_CHROMEOS) 20 #if defined(OS_CHROMEOS)
22 #include "chrome/common/chrome_switches.h" 21 #include "chrome/common/chrome_switches.h"
23 #include "gpu/command_buffer/service/gpu_switches.h" 22 #include "gpu/command_buffer/service/gpu_switches.h"
24 #include "ui/gl/gl_switches.h" 23 #include "ui/gl/gl_switches.h"
25 #endif 24 #endif
26 25
27 namespace crash_keys { 26 namespace crash_keys {
28 27
29 const char kActiveURL[] = "url-chunk"; 28 const char kActiveURL[] = "url-chunk";
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 267
269 return base::debug::InitCrashKeys(&keys.at(0), keys.size(), kChunkMaxLength); 268 return base::debug::InitCrashKeys(&keys.at(0), keys.size(), kChunkMaxLength);
270 } 269 }
271 270
272 static bool IsBoringSwitch(const std::string& flag) { 271 static bool IsBoringSwitch(const std::string& flag) {
273 static const char* const kIgnoreSwitches[] = { 272 static const char* const kIgnoreSwitches[] = {
274 switches::kEnableLogging, 273 switches::kEnableLogging,
275 switches::kFlagSwitchesBegin, 274 switches::kFlagSwitchesBegin,
276 switches::kFlagSwitchesEnd, 275 switches::kFlagSwitchesEnd,
277 switches::kLoggingLevel, 276 switches::kLoggingLevel,
278 #if defined(OS_WIN)
279 // This file is linked into both chrome.dll and chrome.exe. However //ipc
280 // is only in the .dll, so this needs to be a literal rather than the
281 // constant.
282 "channel", // switches::kProcessChannelID
283 #else
284 switches::kProcessChannelID,
285 #endif
286 switches::kProcessType, 277 switches::kProcessType,
287 switches::kV, 278 switches::kV,
288 switches::kVModule, 279 switches::kVModule,
289 #if defined(OS_WIN) 280 #if defined(OS_WIN)
290 switches::kForceFieldTrials, 281 switches::kForceFieldTrials,
291 #elif defined(OS_MACOSX) 282 #elif defined(OS_MACOSX)
292 switches::kMetricsClientID, 283 switches::kMetricsClientID,
293 #elif defined(OS_CHROMEOS) 284 #elif defined(OS_CHROMEOS)
294 switches::kPpapiFlashArgs, 285 switches::kPpapiFlashArgs,
295 switches::kPpapiFlashPath, 286 switches::kPpapiFlashPath,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 } 356 }
366 357
367 ScopedPrinterInfo::~ScopedPrinterInfo() { 358 ScopedPrinterInfo::~ScopedPrinterInfo() {
368 for (size_t i = 0; i < kPrinterInfoCount; ++i) { 359 for (size_t i = 0; i < kPrinterInfoCount; ++i) {
369 std::string key = base::StringPrintf(kPrinterInfo, i + 1); 360 std::string key = base::StringPrintf(kPrinterInfo, i + 1);
370 base::debug::ClearCrashKey(key); 361 base::debug::ClearCrashKey(key);
371 } 362 }
372 } 363 }
373 364
374 } // namespace crash_keys 365 } // namespace crash_keys
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698