Chromium Code Reviews| 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 4023da6dc9d6280475709e8508e71129601f4ff8..bc43efff208ca226b3748aaf65b1975a2b44cb31 100644 |
| --- a/content/browser/frame_host/navigator_impl.cc |
| +++ b/content/browser/frame_host/navigator_impl.cc |
| @@ -334,17 +334,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. |
|
nasko
2016/12/12 23:05:41
nit: Previews
megjablon
2016/12/13 03:03:14
Done.
|
| + PreviewsState 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. |
| @@ -352,7 +352,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() && |
| @@ -422,7 +422,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, |
| @@ -1122,7 +1122,7 @@ void NavigatorImpl::RequestNavigation(FrameTreeNode* frame_tree_node, |
| const FrameNavigationEntry& frame_entry, |
| const NavigationEntryImpl& entry, |
| ReloadType reload_type, |
| - LoFiState lofi_state, |
| + PreviewsState previews_state, |
| bool is_same_document_history_load, |
| bool is_history_navigation_in_new_child, |
| base::TimeTicks navigation_start) { |
| @@ -1139,7 +1139,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(); |