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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 1774663002: Teach CRFO:CapturePageText to recognize page refreshes with long delays. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added interval. Created 4 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/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 17d5bfca92cec8dc6ee75cd7f9bddaab3d36a6ef..36a8816bbd2877fb76b7444b67c99b77a44b5a64 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -1995,9 +1995,9 @@ bool WebLocalFrameImpl::isResourceLoadInProgress() const
return frame()->document()->fetcher()->requestCount();
}
-bool WebLocalFrameImpl::isNavigationScheduled() const
+bool WebLocalFrameImpl::isNavigationScheduledWithin(double interval) const
{
- return frame() && frame()->navigationScheduler().isNavigationScheduled();
+ return frame() && frame()->navigationScheduler().isNavigationScheduledWithin(interval);
}
void WebLocalFrameImpl::setCommittedFirstRealLoad()

Powered by Google App Engine
This is Rietveld 408576698