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

Unified Diff: chrome/browser/browser_shutdown.h

Issue 2318373003: Record shutdown type UMA (Closed)
Patch Set: Address comments Created 4 years, 3 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/browser_shutdown.cc » ('j') | chrome/browser/browser_shutdown.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_shutdown.h
diff --git a/chrome/browser/browser_shutdown.h b/chrome/browser/browser_shutdown.h
index e3cf6506841d13a1bcdb9817be6c1a14c77dda57..84f4fe9bbb9fd760cf74ca49c12c5ffbb2db4a79 100644
--- a/chrome/browser/browser_shutdown.h
+++ b/chrome/browser/browser_shutdown.h
@@ -36,6 +36,8 @@ enum ShutdownType {
END_SESSION
};
+constexpr int kNumShutdownTypes = END_SESSION + 1;
+
void RegisterPrefs(PrefRegistrySimple* registry);
// Called when the browser starts shutting down so that we can measure shutdown
@@ -52,6 +54,9 @@ ShutdownType GetShutdownType();
// Returns true if the session should be restarted.
bool ShutdownPreThreadsStop();
+// Records the shutdown related prefs.
+void RecordShutdownInfoPrefs();
+
// Performs the remaining shutdown tasks after all threads but the
// main thread have been stopped. This includes deleting g_browser_process.
//
« no previous file with comments | « no previous file | chrome/browser/browser_shutdown.cc » ('j') | chrome/browser/browser_shutdown.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698