summaryrefslogtreecommitdiffstats
path: root/chrome/browser/app_controller_mac.mm
diff options
context:
space:
mode:
authorrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-05 15:09:23 +0000
committerrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-05 15:09:23 +0000
commit1eaddf385e18aec7236556df6508d1be5a9dcfd1 (patch)
treea51a65e80f3db24d80aa81d43f9016f919b243ec /chrome/browser/app_controller_mac.mm
parent7bc8f55b5129a62104b3cd71c273a4ec9e9f4ff2 (diff)
downloadchromium_src-1eaddf385e18aec7236556df6508d1be5a9dcfd1.zip
chromium_src-1eaddf385e18aec7236556df6508d1be5a9dcfd1.tar.gz
chromium_src-1eaddf385e18aec7236556df6508d1be5a9dcfd1.tar.bz2
[Mac] Confirm-to-quit: Add histogram metrics.
BUG=none TEST=none Review URL: http://codereview.chromium.org/6794030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80456 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/app_controller_mac.mm')
-rw-r--r--chrome/browser/app_controller_mac.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index e9d4d07..6934219 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -277,8 +277,10 @@ void RecordLastRunAppBundlePath() {
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication*)app {
// Check if the preference is turned on.
const PrefService* prefs = [self defaultProfile]->GetPrefs();
- if (!prefs->GetBoolean(prefs::kConfirmToQuitEnabled))
+ if (!prefs->GetBoolean(prefs::kConfirmToQuitEnabled)) {
+ confirm_quit::RecordHistogram(confirm_quit::kNoConfirm);
return NSTerminateNow;
+ }
// If the application is going to terminate as the result of a Cmd+Q
// invocation, use the special sauce to prevent accidental quitting.