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

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

Issue 2557633003: content::ReloadType cleanup: make NORMAL behave as MAIN_RESOURCE (Closed)
Patch Set: comment update Created 4 years 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
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_controller_impl_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c87e636b6e4410b74cd94ed4f56d4e8745c71817..2e845ae1e705d8515294f56bf88757b1d041fc44 100644
--- a/content/browser/frame_host/navigation_controller_impl.cc
+++ b/content/browser/frame_host/navigation_controller_impl.cc
@@ -265,7 +265,7 @@ void NavigationControllerImpl::Restore(
}
void NavigationControllerImpl::Reload(bool check_for_repost) {
- ReloadInternal(check_for_repost, ReloadType::MAIN_RESOURCE);
+ ReloadInternal(check_for_repost, ReloadType::NORMAL);
}
void NavigationControllerImpl::ReloadBypassingCache(bool check_for_repost) {
ReloadInternal(check_for_repost, ReloadType::BYPASSING_CACHE);
@@ -327,7 +327,7 @@ void NavigationControllerImpl::ReloadInternal(bool check_for_repost,
base::TimeDelta delta = now - last_committed_reload_time_;
UMA_HISTOGRAM_MEDIUM_TIMES("Navigation.Reload.ReloadToReloadDuration",
delta);
- if (last_committed_reload_type_ == ReloadType::MAIN_RESOURCE) {
+ if (last_committed_reload_type_ == ReloadType::NORMAL) {
UMA_HISTOGRAM_MEDIUM_TIMES(
"Navigation.Reload.ReloadMainResourceToReloadDuration", delta);
}
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_controller_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698