diff options
author | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-05 15:09:23 +0000 |
---|---|---|
committer | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-05 15:09:23 +0000 |
commit | 1eaddf385e18aec7236556df6508d1be5a9dcfd1 (patch) | |
tree | a51a65e80f3db24d80aa81d43f9016f919b243ec /chrome/browser/app_controller_mac.mm | |
parent | 7bc8f55b5129a62104b3cd71c273a4ec9e9f4ff2 (diff) | |
download | chromium_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.mm | 4 |
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. |