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

Side by Side Diff: chrome/app/chrome_breakpad_client.cc

Issue 330703004: Don't check OFFICIAL_BUILD for 'Chrome' decision in breakpad (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698