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

Unified Diff: third_party/WebKit/Source/core/loader/ProgressTracker.cpp

Issue 2694013005: Cleanup blink-side PlzNavigate logic (Closed)
Patch Set: Rebase Created 3 years, 9 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/loader/ProgressTracker.cpp
diff --git a/third_party/WebKit/Source/core/loader/ProgressTracker.cpp b/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
index da1c90211dddebd08e6b36bf5d7bc70327260dd6..b0a08e8014c2e212196ee10ddd0a9ded833fe36a 100644
--- a/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
+++ b/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
@@ -104,11 +104,12 @@ LocalFrameClient* ProgressTracker::localFrameClient() const {
}
void ProgressTracker::progressStarted(FrameLoadType type) {
- if (!m_frame->isLoading())
- localFrameClient()->didStartLoading(NavigationToDifferentDocument);
reset();
m_progressValue = initialProgressValue;
- m_frame->setIsLoading(true);
+ if (!m_frame->isLoading()) {
+ localFrameClient()->didStartLoading(NavigationToDifferentDocument);
+ m_frame->setIsLoading(true);
+ }
probe::frameStartedLoading(m_frame, type);
}
« no previous file with comments | « third_party/WebKit/Source/core/loader/NavigationScheduler.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698