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

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

Issue 2694013005: Cleanup blink-side PlzNavigate logic (Closed)
Patch Set: Address ananta's comments Created 3 years, 10 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 bc0b3adc6c3b32b50dba314b015793b22703d511..49561e4c374898e74426c8e723d6c318bd66f904 100644
--- a/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
+++ b/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
@@ -104,12 +104,13 @@ LocalFrameClient* ProgressTracker::localFrameClient() const {
}
void ProgressTracker::progressStarted(FrameLoadType type) {
- if (!m_frame->isLoading())
- localFrameClient()->didStartLoading(NavigationToDifferentDocument);
reset();
m_progressValue = initialProgressValue;
- m_frame->setIsLoading(true);
- InspectorInstrumentation::frameStartedLoading(m_frame, type);
+ if (!m_frame->isLoading()) {
+ localFrameClient()->didStartLoading(NavigationToDifferentDocument);
+ m_frame->setIsLoading(true);
+ InspectorInstrumentation::frameStartedLoading(m_frame, type);
+ }
}
void ProgressTracker::progressCompleted() {

Powered by Google App Engine
This is Rietveld 408576698