| Index: chrome/app/chrome_crash_reporter_client_win.cc
|
| diff --git a/chrome/app/chrome_crash_reporter_client_win.cc b/chrome/app/chrome_crash_reporter_client_win.cc
|
| index 1b3607019d66a4d61cab82008c02b242e64b77fe..a00a06b9e6a683708edae33db276530995ee5964 100644
|
| --- a/chrome/app/chrome_crash_reporter_client_win.cc
|
| +++ b/chrome/app/chrome_crash_reporter_client_win.cc
|
| @@ -249,12 +249,12 @@ void ChromeCrashReporterClient::InitializeCrashReportingForProcess() {
|
| instance = new ChromeCrashReporterClient();
|
| ANNOTATE_LEAKING_OBJECT_PTR(instance);
|
|
|
| - std::string process_type = install_static::GetSwitchValueFromCommandLine(
|
| - ::GetCommandLineA(), install_static::kProcessType);
|
| + std::wstring process_type = install_static::GetSwitchValueFromCommandLine(
|
| + ::GetCommandLine(), install_static::kProcessType);
|
| if (process_type != install_static::kCrashpadHandler) {
|
| crash_reporter::SetCrashReporterClient(instance);
|
| - crash_reporter::InitializeCrashpadWithEmbeddedHandler(process_type.empty(),
|
| - process_type);
|
| + crash_reporter::InitializeCrashpadWithEmbeddedHandler(
|
| + process_type.empty(), install_static::UTF16ToUTF8(process_type));
|
| }
|
| }
|
| #endif // NACL_WIN64
|
| @@ -367,14 +367,13 @@ bool ChromeCrashReporterClient::GetCrashDumpLocation(
|
| if (GetAlternativeCrashDumpLocation(crash_dir))
|
| return true;
|
|
|
| - // TODO(scottmg): Consider supporting --user-data-dir. See
|
| - // https://crbug.com/565446.
|
| - return install_static::GetDefaultCrashDumpLocation(crash_dir);
|
| + return install_static::GetCrashDumpLocation(crash_dir);
|
| }
|
|
|
| bool ChromeCrashReporterClient::GetCrashMetricsLocation(
|
| base::string16* metrics_dir) {
|
| - return install_static::GetDefaultUserDataDirectory(metrics_dir);
|
| + *metrics_dir = install_static::InstallDetails::Get().user_data_dir();
|
| + return true;
|
| }
|
|
|
| // TODO(ananta)
|
| @@ -398,7 +397,7 @@ bool ChromeCrashReporterClient::GetCollectStatsInSample() {
|
|
|
| bool ChromeCrashReporterClient::EnableBreakpadForProcess(
|
| const std::string& process_type) {
|
| - return process_type == install_static::kRendererProcess ||
|
| - process_type == install_static::kPpapiPluginProcess ||
|
| - process_type == install_static::kGpuProcess;
|
| + // This is not used by Crashpad (at least on Windows).
|
| + NOTREACHED();
|
| + return true;
|
| }
|
|
|