Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 502f8331f0e2c4101d1a620a513f3a148fdb07f6..c5cd794967f74de537150fe08c18216eed065ad5 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -201,6 +201,7 @@ |
#include "chrome/browser/task_manager/task_manager.h" |
#include "chrome/browser/ui/view_ids.h" |
#include "components/autofill/core/browser/autofill_ie_toolbar_import_win.h" |
+#include "components/browser_watcher/exit_funnel.h" |
#include "ui/base/touch/touch_device.h" |
#include "ui/base/win/shell.h" |
#endif // OS_WIN |
@@ -659,6 +660,10 @@ void Browser::OnWindowClosing() { |
browser_shutdown::IsTryingToQuit() || !chrome::WillKeepAlive(); |
if (should_quit_if_last_browser && chrome::ShouldStartShutdown(this)) |
sky
2014/12/11 23:36:22
you need to add {} here.
Sigurður Ásgeirsson
2014/12/12 20:09:23
Phew - thanks. One thing I hadn't done yet is run
|
+#if defined(OS_WIN) |
+ browser_watcher::ExitFunnel::RecordSingleEvent( |
+ chrome::kBrowserExitCodesRegistryPath, L"LastWindowClose"); |
+#endif |
browser_shutdown::OnShutdownStarting(browser_shutdown::WINDOW_CLOSE); |
// Don't use GetForProfileIfExisting here, we want to force creation of the |