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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 // RegisterChromeCrashKeys() will be called after the DLL is loaded. | 324 // RegisterChromeCrashKeys() will be called after the DLL is loaded. |
325 return crash_keys::RegisterChromeCrashKeys(); | 325 return crash_keys::RegisterChromeCrashKeys(); |
326 } | 326 } |
327 | 327 |
328 bool ChromeBreakpadClient::IsRunningUnattended() { | 328 bool ChromeBreakpadClient::IsRunningUnattended() { |
329 scoped_ptr<base::Environment> env(base::Environment::Create()); | 329 scoped_ptr<base::Environment> env(base::Environment::Create()); |
330 return env->HasVar(env_vars::kHeadless); | 330 return env->HasVar(env_vars::kHeadless); |
331 } | 331 } |
332 | 332 |
333 bool ChromeBreakpadClient::GetCollectStatsConsent() { | 333 bool ChromeBreakpadClient::GetCollectStatsConsent() { |
334 #if defined(GOOGLE_CHROME_BUILD) && defined(OFFICIAL_BUILD) | 334 #if defined(GOOGLE_CHROME_BUILD) |
335 bool is_official_chrome_build = true; | 335 bool is_official_chrome_build = true; |
336 #else | 336 #else |
337 bool is_official_chrome_build = false; | 337 bool is_official_chrome_build = false; |
338 #endif | 338 #endif |
339 | 339 |
340 #if defined(OS_CHROMEOS) | 340 #if defined(OS_CHROMEOS) |
341 bool is_guest_session = CommandLine::ForCurrentProcess()->HasSwitch( | 341 bool is_guest_session = CommandLine::ForCurrentProcess()->HasSwitch( |
342 chromeos::switches::kGuestSession); | 342 chromeos::switches::kGuestSession); |
343 bool is_stable_channel = | 343 bool is_stable_channel = |
344 chrome::VersionInfo::GetChannel() == chrome::VersionInfo::CHANNEL_STABLE; | 344 chrome::VersionInfo::GetChannel() == chrome::VersionInfo::CHANNEL_STABLE; |
(...skipping 22 matching lines...) Expand all 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 |