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

Unified Diff: components/crash/app/breakpad_linux.cc

Issue 762723003: Prefix CommandLine usage with base namespace (Part 8: components) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « components/cloud_devices/common/cloud_devices_urls.cc ('k') | components/crash/app/breakpad_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/crash/app/breakpad_linux.cc
diff --git a/components/crash/app/breakpad_linux.cc b/components/crash/app/breakpad_linux.cc
index f3e9e21fe7118b5bcc213ad753fe9803c6d12b17..7267bda4adc671e0a55be41745b358bf811ea394 100644
--- a/components/crash/app/breakpad_linux.cc
+++ b/components/crash/app/breakpad_linux.cc
@@ -205,7 +205,7 @@ size_t LengthWithoutTrailingSpaces(const char* str, size_t len) {
return len;
}
-void SetClientIdFromCommandLine(const CommandLine& command_line) {
+void SetClientIdFromCommandLine(const base::CommandLine& command_line) {
// Get the guid from the command line switch.
std::string switch_value =
command_line.GetSwitchValueASCII(switches::kEnableCrashReporter);
@@ -769,7 +769,7 @@ void EnableNonBrowserCrashDumping(const std::string& process_type,
// This will guarantee that the BuildInfo has been initialized and subsequent
// calls will not require memory allocation.
base::android::BuildInfo::GetInstance();
- SetClientIdFromCommandLine(*CommandLine::ForCurrentProcess());
+ SetClientIdFromCommandLine(*base::CommandLine::ForCurrentProcess());
// On Android, the current sandboxing uses process isolation, in which the
// child process runs with a different UID. That breaks the normal crash
@@ -1635,7 +1635,8 @@ void InitCrashReporter(const std::string& process_type) {
InitMicrodumpCrashHandlerIfNecessary(process_type);
#endif
// Determine the process type and take appropriate action.
- const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
+ const base::CommandLine& parsed_command_line =
+ *base::CommandLine::ForCurrentProcess();
if (parsed_command_line.HasSwitch(switches::kDisableBreakpad))
return;
@@ -1680,7 +1681,8 @@ void InitCrashReporter(const std::string& process_type) {
#if defined(OS_ANDROID)
void InitNonBrowserCrashReporterForAndroid(const std::string& process_type) {
- const CommandLine* command_line = CommandLine::ForCurrentProcess();
+ const base::CommandLine* command_line =
+ base::CommandLine::ForCurrentProcess();
// Handler registration is LIFO. Install the microdump handler first, such
// that if conventional minidump crash reporting is enabled below, it takes
« no previous file with comments | « components/cloud_devices/common/cloud_devices_urls.cc ('k') | components/crash/app/breakpad_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698