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

Unified Diff: chrome/browser/android/offline_pages/prerendering_loader.cc

Issue 2420693002: Skip the OnDomContentLoaded event, and only use the OnLoad event. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/offline_pages/prerendering_loader.cc
diff --git a/chrome/browser/android/offline_pages/prerendering_loader.cc b/chrome/browser/android/offline_pages/prerendering_loader.cc
index 4e614eae249e006de213b16b82c27222076776ca..635010c03ec7f956676f49fc20a21b80eb30a607 100644
--- a/chrome/browser/android/offline_pages/prerendering_loader.cc
+++ b/chrome/browser/android/offline_pages/prerendering_loader.cc
@@ -130,11 +130,6 @@ void PrerenderingLoader::OnPrerenderDomContentLoaded() {
if (!adapter_->GetWebContents()) {
// Without a WebContents object at this point, we are done.
HandleLoadingStopped();
- } else {
- // Inform SnapshotController of DomContentContent event so it can
- // determine when to consider it really LOADED (e.g., some multiple
- // second delay from this event).
- snapshot_controller_->DocumentAvailableInMainFrame();
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698