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

Unified Diff: chrome/app/chrome_breakpad_client_mac.mm

Issue 585633002: Rename BreakpadClient to CrashReporterClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/chrome_breakpad_client.cc ('k') | chrome/app/chrome_crash_reporter_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_breakpad_client_mac.mm
diff --git a/chrome/app/chrome_breakpad_client_mac.mm b/chrome/app/chrome_breakpad_client_mac.mm
deleted file mode 100644
index c9766b183f60d4b684945b1b8a3225b1d3ae525d..0000000000000000000000000000000000000000
--- a/chrome/app/chrome_breakpad_client_mac.mm
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/app/chrome_breakpad_client.h"
-
-#include <CoreFoundation/CoreFoundation.h>
-
-#include "base/mac/scoped_cftyperef.h"
-#include "base/strings/sys_string_conversions.h"
-#include "policy/policy_constants.h"
-
-#if !defined(DISABLE_NACL)
-#include "base/command_line.h"
-#import "breakpad/src/client/mac/Framework/Breakpad.h"
-#include "chrome/common/chrome_switches.h"
-#include "components/nacl/common/nacl_switches.h"
-#include "native_client/src/trusted/service_runtime/osx/crash_filter.h"
-#endif
-
-namespace chrome {
-
-namespace {
-
-#if !defined(DISABLE_NACL)
-bool NaClBreakpadCrashFilter(int exception_type,
- int exception_code,
- mach_port_t crashing_thread,
- void* context) {
- return !NaClMachThreadIsInUntrusted(crashing_thread);
-}
-#endif
-
-} // namespace
-
-void ChromeBreakpadClient::InstallAdditionalFilters(BreakpadRef breakpad) {
-#if !defined(DISABLE_NACL)
- if (CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
- switches::kProcessType) == switches::kNaClLoaderProcess) {
- BreakpadSetFilterCallback(breakpad, NaClBreakpadCrashFilter, NULL);
- }
-#endif
-}
-
-bool ChromeBreakpadClient::ReportingIsEnforcedByPolicy(bool* breakpad_enabled) {
- base::ScopedCFTypeRef<CFStringRef> key(
- base::SysUTF8ToCFStringRef(policy::key::kMetricsReportingEnabled));
- Boolean key_valid;
- Boolean metrics_reporting_enabled = CFPreferencesGetAppBooleanValue(key,
- kCFPreferencesCurrentApplication, &key_valid);
- if (key_valid &&
- CFPreferencesAppValueIsForced(key, kCFPreferencesCurrentApplication)) {
- *breakpad_enabled = metrics_reporting_enabled;
- return true;
- }
- return false;
-}
-
-} // namespace chrome
« no previous file with comments | « chrome/app/chrome_breakpad_client.cc ('k') | chrome/app/chrome_crash_reporter_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698