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

Unified Diff: chrome/browser/app_controller_mac.mm

Issue 6794030: [Mac] Confirm-to-quit: Add histogram metrics. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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 | « no previous file | chrome/browser/ui/cocoa/confirm_quit_panel_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_controller_mac.mm
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index e9d4d076616cd415bf6198f951ab6850ffe791ab..6934219cb24e7c5d21f20741803f2b728902e7e7 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.
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/confirm_quit_panel_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698