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

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceNavigation.cpp

Issue 2655143002: Drop replacesCurrentHistoryItem, NavigationType (Closed)
Patch Set: More compile fixes Created 3 years, 11 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: third_party/WebKit/Source/core/timing/PerformanceNavigation.cpp
diff --git a/third_party/WebKit/Source/core/timing/PerformanceNavigation.cpp b/third_party/WebKit/Source/core/timing/PerformanceNavigation.cpp
index dce72f9af46691422688ad3a69fd4e5c149f5441..d0650788167fc47d9d72a611a53eee628ca9e8b3 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceNavigation.cpp
+++ b/third_party/WebKit/Source/core/timing/PerformanceNavigation.cpp
@@ -50,10 +50,12 @@ unsigned short PerformanceNavigation::type() const {
if (!documentLoader)
return kTypeNavigate;
- switch (documentLoader->getNavigationType()) {
- case NavigationTypeReload:
+ switch (documentLoader->loadType()) {
+ case FrameLoadTypeReload:
+ case FrameLoadTypeReloadMainResource:
return kTypeReload;
- case NavigationTypeBackForward:
+ case FrameLoadTypeBackForward:
+ case FrameLoadTypeInitialHistoryLoad:
return kTypeBackForward;
default:
return kTypeNavigate;
« no previous file with comments | « third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp ('k') | third_party/WebKit/Source/web/FrameLoaderClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698