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

Unified Diff: chrome/browser/ui/browser.cc

Issue 796963002: Instrument some of the exit paths likely to suffer hangs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@end_session_instrument
Patch Set: Created 6 years 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
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
« no previous file with comments | « chrome/browser/lifetime/application_lifetime.cc ('k') | chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698