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

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

Issue 1975753006: Pull to refresh: Use new reload type RELOAD_MAIN_RESOURCE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review #14 and #16 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
« no previous file with comments | « content/browser/frame_host/navigation_controller_impl.cc ('k') | content/common/frame_message_enums.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6fcdb074b4a0f6badd1ea04256214a7e2223480d..44758bac9c484cbd526ff350ac06405aae1826d7 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -52,14 +52,16 @@ FrameMsg_Navigate_Type::Value GetNavigationType(
BrowserContext* browser_context, const NavigationEntryImpl& entry,
NavigationController::ReloadType reload_type) {
switch (reload_type) {
- case NavigationControllerImpl::RELOAD:
+ case NavigationController::RELOAD:
return FrameMsg_Navigate_Type::RELOAD;
- case NavigationControllerImpl::RELOAD_BYPASSING_CACHE:
- case NavigationControllerImpl::RELOAD_DISABLE_LOFI_MODE:
+ case NavigationController::RELOAD_MAIN_RESOURCE:
+ return FrameMsg_Navigate_Type::RELOAD_MAIN_RESOURCE;
+ case NavigationController::RELOAD_BYPASSING_CACHE:
+ case NavigationController::RELOAD_DISABLE_LOFI_MODE:
return FrameMsg_Navigate_Type::RELOAD_BYPASSING_CACHE;
- case NavigationControllerImpl::RELOAD_ORIGINAL_REQUEST_URL:
+ case NavigationController::RELOAD_ORIGINAL_REQUEST_URL:
return FrameMsg_Navigate_Type::RELOAD_ORIGINAL_REQUEST_URL;
- case NavigationControllerImpl::NO_RELOAD:
+ case NavigationController::NO_RELOAD:
break; // Fall through to rest of function.
}
« no previous file with comments | « content/browser/frame_host/navigation_controller_impl.cc ('k') | content/common/frame_message_enums.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698