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

Unified Diff: chrome/browser/browser_shutdown.h

Issue 2318373003: Record shutdown type UMA (Closed)
Patch Set: Clear kRestartLastSessionOnShutdown 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') | no next file with comments »
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..6b40689e49c66fce8ad998aefb03bbaf05dd3354 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,10 @@ ShutdownType GetShutdownType();
// Returns true if the session should be restarted.
bool ShutdownPreThreadsStop();
+// Records the shutdown related prefs, and returns true when we should restart
sky 2016/09/13 13:21:14 How about: Returns true if the browser should be r
hashimoto 2016/09/13 22:18:22 Done.
+// the last session.
+bool 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698