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

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

Issue 1993603003: Add a field study to use new reload behavior even on desktops (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 7 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_controller_impl.cc
diff --git a/content/browser/frame_host/navigation_controller_impl.cc b/content/browser/frame_host/navigation_controller_impl.cc
index e75622886514500047b1627b4b0c18cb1e6e44ba..fe5cdcd0f764db3adaa7b8a7932f6907fb31d66d 100644
--- a/content/browser/frame_host/navigation_controller_impl.cc
+++ b/content/browser/frame_host/navigation_controller_impl.cc
@@ -285,7 +285,12 @@ void NavigationControllerImpl::Restore(
}
void NavigationControllerImpl::Reload(bool check_for_repost) {
- ReloadInternal(check_for_repost, RELOAD);
+ ReloadType type = RELOAD;
+ if (base::FeatureList::IsEnabled(
+ features::kNonValidatingReloadOnNormalReload)) {
+ type = RELOAD_MAIN_RESOURCE;
+ }
+ ReloadInternal(check_for_repost, type);
}
void NavigationControllerImpl::ReloadToRefreshContent(bool check_for_repost) {
ReloadType type = RELOAD;

Powered by Google App Engine
This is Rietveld 408576698