OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/app/chrome_breakpad_client.h" | 5 #include "chrome/app/chrome_breakpad_client.h" |
6 | 6 |
7 #include "base/atomicops.h" | 7 #include "base/atomicops.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/environment.h" | 9 #include "base/environment.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
73 // A atomic counter to make each crash dump value name unique. | 73 // A atomic counter to make each crash dump value name unique. |
74 base::subtle::Atomic32 g_browser_crash_dump_count = 0; | 74 base::subtle::Atomic32 g_browser_crash_dump_count = 0; |
75 #endif | 75 #endif |
76 | 76 |
77 } // namespace | 77 } // namespace |
78 | 78 |
79 ChromeBreakpadClient::ChromeBreakpadClient() {} | 79 ChromeBreakpadClient::ChromeBreakpadClient() {} |
80 | 80 |
81 ChromeBreakpadClient::~ChromeBreakpadClient() {} | 81 ChromeBreakpadClient::~ChromeBreakpadClient() {} |
82 | 82 |
83 void ChromeBreakpadClient::SetClientID(const std::string& client_id) { | 83 void ChromeBreakpadClient::InitClientID(const std::string& client_id) { |
Ilya Sherman
2014/07/08 03:21:38
nit: Should the variable be renamed to include "gu
gab
2014/07/08 18:42:22
Done.
| |
84 crash_keys::SetClientID(client_id); | 84 crash_keys::SetClientIDFromGUID(client_id); |
85 } | 85 } |
86 | 86 |
87 #if defined(OS_WIN) | 87 #if defined(OS_WIN) |
88 bool ChromeBreakpadClient::GetAlternativeCrashDumpLocation( | 88 bool ChromeBreakpadClient::GetAlternativeCrashDumpLocation( |
89 base::FilePath* crash_dir) { | 89 base::FilePath* crash_dir) { |
90 // By setting the BREAKPAD_DUMP_LOCATION environment variable, an alternate | 90 // By setting the BREAKPAD_DUMP_LOCATION environment variable, an alternate |
91 // location to write breakpad crash dumps can be set. | 91 // location to write breakpad crash dumps can be set. |
92 scoped_ptr<base::Environment> env(base::Environment::Create()); | 92 scoped_ptr<base::Environment> env(base::Environment::Create()); |
93 std::string alternate_crash_dump_location; | 93 std::string alternate_crash_dump_location; |
94 if (env->GetVar("BREAKPAD_DUMP_LOCATION", &alternate_crash_dump_location)) { | 94 if (env->GetVar("BREAKPAD_DUMP_LOCATION", &alternate_crash_dump_location)) { |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
367 bool ChromeBreakpadClient::EnableBreakpadForProcess( | 367 bool ChromeBreakpadClient::EnableBreakpadForProcess( |
368 const std::string& process_type) { | 368 const std::string& process_type) { |
369 return process_type == switches::kRendererProcess || | 369 return process_type == switches::kRendererProcess || |
370 process_type == switches::kPluginProcess || | 370 process_type == switches::kPluginProcess || |
371 process_type == switches::kPpapiPluginProcess || | 371 process_type == switches::kPpapiPluginProcess || |
372 process_type == switches::kZygoteProcess || | 372 process_type == switches::kZygoteProcess || |
373 process_type == switches::kGpuProcess; | 373 process_type == switches::kGpuProcess; |
374 } | 374 } |
375 | 375 |
376 } // namespace chrome | 376 } // namespace chrome |
OLD | NEW |