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

Unified Diff: content/browser/frame_host/navigation_handle_impl.cc

Issue 2694183004: Adding TabRestore PLM UMA (Closed)
Patch Set: rebase + comments Created 3 years, 10 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 | « content/browser/frame_host/navigation_handle_impl.h ('k') | content/public/browser/navigation_handle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigation_handle_impl.cc
diff --git a/content/browser/frame_host/navigation_handle_impl.cc b/content/browser/frame_host/navigation_handle_impl.cc
index a5459d616a3ec8087786bbe6be27ca47b1aa541f..9195f11849db28291f8aab6375626bda9ecf0197 100644
--- a/content/browser/frame_host/navigation_handle_impl.cc
+++ b/content/browser/frame_host/navigation_handle_impl.cc
@@ -108,6 +108,7 @@ NavigationHandleImpl::NavigationHandleImpl(
is_stream_(false),
started_from_context_menu_(started_from_context_menu),
reload_type_(ReloadType::NONE),
+ restore_type_(RestoreType::NONE),
navigation_type_(NAVIGATION_TYPE_UNKNOWN),
weak_factory_(this) {
DCHECK(!navigation_start.is_null());
@@ -130,8 +131,10 @@ NavigationHandleImpl::NavigationHandleImpl(
nav_entry = nav_controller->GetPendingEntry();
}
- if (nav_entry)
+ if (nav_entry) {
reload_type_ = nav_entry->reload_type();
+ restore_type_ = nav_entry->restore_type();
+ }
}
if (!IsRendererDebugURL(url_))
@@ -452,6 +455,10 @@ ReloadType NavigationHandleImpl::GetReloadType() {
return reload_type_;
}
+RestoreType NavigationHandleImpl::GetRestoreType() {
+ return restore_type_;
+}
+
NavigationData* NavigationHandleImpl::GetNavigationData() {
return navigation_data_.get();
}
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.h ('k') | content/public/browser/navigation_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698