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

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: Change if-check to DCHECK for tab_manager. 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..ce79a5ef119427a079ad08ce9aead581e90df5c9 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 MarkSessionRestoreStarted();
lpy 2017/06/14 17:23:19 ditto
+ static void MarkSessionRestoreEnded();
+
// 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