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

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

Issue 1310743003: Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments Created 5 years, 4 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: content/browser/frame_host/navigation_entry_impl.cc
diff --git a/content/browser/frame_host/navigation_entry_impl.cc b/content/browser/frame_host/navigation_entry_impl.cc
index 1adb2be5d700a2f168971c42864488bf3594f81b..8ad1c077dcd86ac7f41616f02365753093edcd6e 100644
--- a/content/browser/frame_host/navigation_entry_impl.cc
+++ b/content/browser/frame_host/navigation_entry_impl.cc
@@ -10,7 +10,6 @@
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "components/url_formatter/url_formatter.h"
-#include "content/common/navigation_params.h"
#include "content/public/common/content_constants.h"
#include "content/public/common/url_constants.h"
#include "ui/gfx/text_elider.h"
@@ -484,7 +483,8 @@ RequestNavigationParams NavigationEntryImpl::ConstructRequestNavigationParams(
bool intended_as_new_entry,
int pending_history_list_offset,
int current_history_list_offset,
- int current_history_list_length) const {
+ int current_history_list_length,
+ LoFiState lofi_state) const {
// Set the redirect chain to the navigation's redirects, unless returning to a
// completed navigation (whose previous redirects don't apply).
std::vector<GURL> redirects;
@@ -503,13 +503,14 @@ RequestNavigationParams NavigationEntryImpl::ConstructRequestNavigationParams(
current_offset_to_send = -1;
current_length_to_send = 0;
}
+
return RequestNavigationParams(
GetIsOverridingUserAgent(), navigation_start, redirects,
GetCanLoadLocalResources(), base::Time::Now(), frame_entry.page_state(),
GetPageID(), GetUniqueID(), is_same_document_history_load,
has_committed_real_load, intended_as_new_entry, pending_offset_to_send,
current_offset_to_send, current_length_to_send,
- should_clear_history_list());
+ should_clear_history_list(), lofi_state);
}
void NavigationEntryImpl::ResetForCommit() {

Powered by Google App Engine
This is Rietveld 408576698