| Index: content/browser/frame_host/navigator_impl.cc
|
| diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
|
| index 44873594afe061d98414abd3f993b87c5ff7d9de..df942ba3f1f0f64d7675280a0a2f96a834ff0aad 100644
|
| --- a/content/browser/frame_host/navigator_impl.cc
|
| +++ b/content/browser/frame_host/navigator_impl.cc
|
| @@ -338,17 +338,17 @@ bool NavigatorImpl::NavigateToEntry(
|
| "navigation,rail", "NavigationTiming navigationStart",
|
| TRACE_EVENT_SCOPE_GLOBAL, navigation_start);
|
|
|
| - // Determine if LoFi should be used for the navigation.
|
| - LoFiState lofi_state = LOFI_UNSPECIFIED;
|
| + // Determine if previews should be used for the navigation.
|
| + int previews_state = PREVIEWS_UNSPECIFIED;
|
| if (!frame_tree_node->IsMainFrame()) {
|
| // For subframes, use the state of the top-level frame.
|
| - lofi_state = frame_tree_node->frame_tree()
|
| + previews_state = frame_tree_node->frame_tree()
|
| ->root()
|
| ->current_frame_host()
|
| - ->last_navigation_lofi_state();
|
| + ->last_navigation_previews_state();
|
| } else if (reload_type == ReloadType::DISABLE_LOFI_MODE) {
|
| // Disable LoFi when asked for it explicitly.
|
| - lofi_state = LOFI_OFF;
|
| + previews_state = PREVIEWS_OFF;
|
| }
|
|
|
| // PlzNavigate: the RenderFrameHosts are no longer asked to navigate.
|
| @@ -356,7 +356,7 @@ bool NavigatorImpl::NavigateToEntry(
|
| navigation_data_.reset(new NavigationMetricsData(navigation_start, dest_url,
|
| entry.restore_type()));
|
| RequestNavigation(frame_tree_node, dest_url, dest_referrer, frame_entry,
|
| - entry, reload_type, lofi_state,
|
| + entry, reload_type, previews_state,
|
| is_same_document_history_load,
|
| is_history_navigation_in_new_child, navigation_start);
|
| if (frame_tree_node->IsMainFrame() &&
|
| @@ -426,7 +426,7 @@ bool NavigatorImpl::NavigateToEntry(
|
| dest_render_frame_host->Navigate(
|
| entry.ConstructCommonNavigationParams(
|
| frame_entry, post_body, dest_url, dest_referrer, navigation_type,
|
| - lofi_state, navigation_start),
|
| + previews_state, navigation_start),
|
| entry.ConstructStartNavigationParams(),
|
| entry.ConstructRequestNavigationParams(
|
| frame_entry, is_same_document_history_load,
|
| @@ -1126,7 +1126,7 @@ void NavigatorImpl::RequestNavigation(FrameTreeNode* frame_tree_node,
|
| const FrameNavigationEntry& frame_entry,
|
| const NavigationEntryImpl& entry,
|
| ReloadType reload_type,
|
| - LoFiState lofi_state,
|
| + int previews_state,
|
| bool is_same_document_history_load,
|
| bool is_history_navigation_in_new_child,
|
| base::TimeTicks navigation_start) {
|
| @@ -1143,7 +1143,7 @@ void NavigatorImpl::RequestNavigation(FrameTreeNode* frame_tree_node,
|
| std::unique_ptr<NavigationRequest> scoped_request =
|
| NavigationRequest::CreateBrowserInitiated(
|
| frame_tree_node, dest_url, dest_referrer, frame_entry, entry,
|
| - navigation_type, lofi_state, is_same_document_history_load,
|
| + navigation_type, previews_state, is_same_document_history_load,
|
| is_history_navigation_in_new_child, navigation_start, controller_);
|
| NavigationRequest* navigation_request = scoped_request.get();
|
|
|
|
|