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

Unified Diff: chrome/browser/ui/browser.h

Issue 2930013005: [Tab Metrics] Measure FP, FCP and FMP for Foreground Tab during Session Restore (Closed)
Patch Set: Correct the position of DCHECK in OnStart(). Created 3 years, 5 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/ui/browser.h
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h
index 5940ad9fbc27f456e15323ed83aac47c7852197e..800c8187a1f117b429ef06431a0b20380ae5cc54 100644
--- a/chrome/browser/ui/browser.h
+++ b/chrome/browser/ui/browser.h
@@ -242,6 +242,14 @@ class Browser : public TabStripModelObserver,
return is_session_restore_;
}
+ void set_is_used_for_session_restore(bool is_used_for_session_restore) {
+ is_used_for_session_restore_ = is_used_for_session_restore;
sky 2017/07/21 14:48:09 How does this differ from is_session_restore_ abov
ducbui 2017/07/21 15:19:58 The is_session_restore_ above is used on Mac only
+ }
+
+ bool is_used_for_session_restore() const {
+ return is_used_for_session_restore_;
+ }
+
// Accessors ////////////////////////////////////////////////////////////////
Type type() const { return type_; }
@@ -961,6 +969,9 @@ class Browser : public TabStripModelObserver,
// Tracks when this browser is being created by session restore.
bool is_session_restore_;
+ // True if a newly created or exisiting browser is used for session restore.
+ bool is_used_for_session_restore_;
+
std::unique_ptr<chrome::UnloadController> unload_controller_;
std::unique_ptr<chrome::FastUnloadController> fast_unload_controller_;

Powered by Google App Engine
This is Rietveld 408576698