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

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

Issue 1137033004: [Session restore] Add DontRestoreBackgroundTabs group to collect stats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change experiment name to the new/correct one. Created 5 years, 7 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/session_restore_stats_collector.h
diff --git a/chrome/browser/sessions/session_restore_stats_collector.h b/chrome/browser/sessions/session_restore_stats_collector.h
index c312b404383a4530c356063b8acd35f0cd2ed9fd..668e2c01b77a52e1a1ed57ea4017da9d870f44fd 100644
--- a/chrome/browser/sessions/session_restore_stats_collector.h
+++ b/chrome/browser/sessions/session_restore_stats_collector.h
@@ -30,6 +30,12 @@ class SessionRestoreStatsCollector
const std::vector<SessionRestoreDelegate::RestoredTab>& tabs,
const base::TimeTicks& restore_started);
+ // Called to start tracking only active tabs. If a restore is already
+ // occuring, the tabs are added to the existing list of tracked tabs.
+ static void TrackActiveTabs(
+ const std::vector<SessionRestoreDelegate::RestoredTab>& tabs,
+ const base::TimeTicks& restore_started);
+
private:
friend class base::RefCounted<SessionRestoreStatsCollector>;
« no previous file with comments | « chrome/browser/sessions/session_restore_delegate.cc ('k') | chrome/browser/sessions/session_restore_stats_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698