Index: content/browser/frame_host/render_frame_host_impl.cc |
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc |
index 34c8572c4391e87f2198abd6d78498ecbe4be1c4..bb98167eeae08bae607934a581b7a58085f04e45 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.cc |
+++ b/content/browser/frame_host/render_frame_host_impl.cc |
@@ -89,6 +89,7 @@ |
#include "content/public/common/file_chooser_params.h" |
#include "content/public/common/form_field_data.h" |
#include "content/public/common/isolated_world_ids.h" |
+#include "content/public/common/previews_state.h" |
#include "content/public/common/service_manager_connection.h" |
#include "content/public/common/service_names.mojom.h" |
#include "content/public/common/url_constants.h" |
@@ -334,7 +335,7 @@ RenderFrameHostImpl::RenderFrameHostImpl(SiteInstance* site_instance, |
pending_web_ui_type_(WebUI::kNoWebUI), |
should_reuse_web_ui_(false), |
has_selection_(false), |
- last_navigation_lofi_state_(LOFI_UNSPECIFIED), |
+ last_navigation_previews_state_(PREVIEWS_UNSPECIFIED), |
frame_host_binding_(this), |
waiting_for_init_(renderer_initiated_creation), |
weak_ptr_factory_(this) { |
@@ -2405,7 +2406,7 @@ void RenderFrameHostImpl::NavigateToInterstitialURL(const GURL& data_url) { |
data_url, Referrer(), ui::PAGE_TRANSITION_LINK, |
FrameMsg_Navigate_Type::NORMAL, NavigationGestureAuto, false, false, |
base::TimeTicks::Now(), FrameMsg_UILoadMetricsReportType::NO_REPORT, |
- GURL(), GURL(), LOFI_OFF, base::TimeTicks::Now(), "GET", nullptr); |
+ GURL(), GURL(), PREVIEWS_OFF, base::TimeTicks::Now(), "GET", nullptr); |
if (IsBrowserSideNavigationEnabled()) { |
CommitNavigation(nullptr, nullptr, common_params, RequestNavigationParams(), |
false); |
@@ -2588,9 +2589,9 @@ void RenderFrameHostImpl::CommitNavigation( |
Send(new FrameMsg_CommitNavigation(routing_id_, head, body_url, common_params, |
request_params)); |
- // If a network request was made, update the LoFi state. |
+ // If a network request was made, update the Previews state. |
if (ShouldMakeNetworkRequestForURL(common_params.url)) |
- last_navigation_lofi_state_ = common_params.lofi_state; |
+ last_navigation_previews_state_ = common_params.previews_state; |
// TODO(clamy): Release the stream handle once the renderer has finished |
// reading it. |