diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-14 03:26:03 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-14 03:26:03 +0000 |
commit | 1152b7ea95609ce835bdb9ab4454b4589b60ea87 (patch) | |
tree | fd9a09dee7e9457d793564cf605388d1359a24a1 /chrome/browser/browser_main_mac.mm | |
parent | 60f1e8fe0973d60e3e786237a283395749550a40 (diff) | |
download | chromium_src-1152b7ea95609ce835bdb9ab4454b4589b60ea87.zip chromium_src-1152b7ea95609ce835bdb9ab4454b4589b60ea87.tar.gz chromium_src-1152b7ea95609ce835bdb9ab4454b4589b60ea87.tar.bz2 |
Send Breakpad and debugger status to the metrics service on the Mac.
BUG=21731
TEST=Metrics data should have the correct values for breakpadregistrationok,
breakpadregistrationfail, debuggerpresent, and debuggernotpresent in
log.profile.stability.
Review URL: http://codereview.chromium.org/203050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26093 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main_mac.mm')
-rw-r--r-- | chrome/browser/browser_main_mac.mm | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/chrome/browser/browser_main_mac.mm b/chrome/browser/browser_main_mac.mm index d3041cc..ca6d346 100644 --- a/chrome/browser/browser_main_mac.mm +++ b/chrome/browser/browser_main_mac.mm @@ -2,11 +2,17 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "chrome/browser/browser_main.h" + #import <Cocoa/Cocoa.h> + #include "app/resource_bundle.h" #include "base/command_line.h" +#include "base/debug_util.h" +#include "chrome/app/breakpad_mac.h" #import "chrome/app/keystone_glue.h" #include "chrome/browser/browser_main_win.h" +#include "chrome/browser/metrics/metrics_service.h" #include "chrome/common/main_function_params.h" #include "chrome/common/result_codes.h" @@ -49,6 +55,11 @@ void WillTerminate() { object:NSApp]; } +void RecordBreakpadStatusUMA(MetricsService* metrics) { + metrics->RecordBreakpadRegistration(IsCrashReporterEnabled()); + metrics->RecordBreakpadHasDebugger(DebugUtil::BeingDebugged()); +} + } // namespace Platform // From browser_main_win.h, stubs until we figure out the right thing... @@ -75,6 +86,3 @@ bool CheckMachineLevelInstall() { void PrepareRestartOnCrashEnviroment(const CommandLine& parsed_command_line) { } - -void RecordBreakpadStatusUMA(MetricsService* metrics) { -} |