| 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 f568d76177b5028e99d906f25507e43b7d8c49cc..4618b7daaecfa4cc11c4021bbbe362c6d6b2b065 100644
|
| --- a/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
|
| @@ -137,7 +137,7 @@ void ProgressTracker::willStartLoading(unsigned long identifier,
|
| // on parsing completion, which corresponds to finishing parsing. For those
|
| // policies, don't consider resource load that start after DOMContentLoaded
|
| // finishes.
|
| - if (m_frame->settings()->progressBarCompletion() !=
|
| + if (m_frame->settings()->getProgressBarCompletion() !=
|
| ProgressBarCompletion::LoadEvent &&
|
| (m_finishedParsing || priority < ResourceLoadPriorityHigh))
|
| return;
|
| @@ -187,12 +187,12 @@ void ProgressTracker::maybeSendProgress() {
|
| DCHECK_GE(estimatedBytesForPendingRequests, bytesReceived);
|
|
|
| if (m_finishedParsing) {
|
| - if (m_frame->settings()->progressBarCompletion() ==
|
| + if (m_frame->settings()->getProgressBarCompletion() ==
|
| ProgressBarCompletion::DOMContentLoaded) {
|
| sendFinalProgress();
|
| return;
|
| }
|
| - if (m_frame->settings()->progressBarCompletion() !=
|
| + if (m_frame->settings()->getProgressBarCompletion() !=
|
| ProgressBarCompletion::LoadEvent &&
|
| estimatedBytesForPendingRequests == bytesReceived) {
|
| sendFinalProgress();
|
|
|