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

Unified Diff: chrome/browser/sessions/tab_loader.h

Issue 2935183002: [TabMetrics] Add signals that mark the start and end of session restore. (Closed)
Patch Set: DCHECK() directly on GetTabManager() and eliminate a variable Created 3 years, 6 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
Index: chrome/browser/sessions/tab_loader.h
diff --git a/chrome/browser/sessions/tab_loader.h b/chrome/browser/sessions/tab_loader.h
index c3528f3e0181fe4296275331874eac9d806fc3a1..d2b3d3a36dc6d303af26ac9a4c2797e5829e705d 100644
--- a/chrome/browser/sessions/tab_loader.h
+++ b/chrome/browser/sessions/tab_loader.h
@@ -125,6 +125,10 @@ class TabLoader : public content::NotificationObserver,
// Stops loading tabs to purge memory by stopping to load any more tabs.
void StopLoadingTabs();
+ // Signal the start and end of session restore to the tab manager.
+ static void OnSessionRestoreStarted();
+ static void OnSessionRestoreEnded();
+
// Limit the number of loaded tabs.
// Value of 0 restores default behavior. In test mode command line flags and
// free memory size are not taken into account.

Powered by Google App Engine
This is Rietveld 408576698