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

Unified Diff: pdf/instance.cc

Issue 397713005: Ensure pdf plugin sends DidStartLoading() consistently (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « chrome/renderer/printing/print_web_view_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/instance.cc
diff --git a/pdf/instance.cc b/pdf/instance.cc
index 9dee0f6aaeca5f3b2ff101085ac9a8f92e2ac5bb..2c38585f81996bf04436725dc41bb708b1c1bb7b 100644
--- a/pdf/instance.cc
+++ b/pdf/instance.cc
@@ -349,6 +349,10 @@ bool Instance::Init(uint32_t argc, const char* argn[], const char* argv[]) {
// For PDFs embedded in a frame, we don't get the data automatically like we
// do for full-frame loads. Start loading the data manually.
LoadUrl(url);
+ } else {
+ DCHECK(!did_call_start_loading_);
Vitaly Buka (NO REVIEWS) 2014/07/16 18:32:45 Maybe CHECK() to make crash in release, so we coul
+ pp::PDF::DidStartLoading(this);
+ did_call_start_loading_ = true;
jam 2014/07/16 21:25:43 I'm a bit confused, I tried doing window.print() (
}
ZoomLimitsChanged(kMinZoom, kMaxZoom);
« no previous file with comments | « chrome/renderer/printing/print_web_view_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698