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

Unified Diff: components/dom_distiller/content/renderer/distillability_agent.cc

Issue 2469803002: Only send distillability message on valid pipe (Closed)
Patch Set: Created 4 years, 1 month 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: components/dom_distiller/content/renderer/distillability_agent.cc
diff --git a/components/dom_distiller/content/renderer/distillability_agent.cc b/components/dom_distiller/content/renderer/distillability_agent.cc
index 543a47df741821fae2228f82f61ef934b45011e3..3b0dd9ba973547301be1184771146944c4cc04d0 100644
--- a/components/dom_distiller/content/renderer/distillability_agent.cc
+++ b/components/dom_distiller/content/renderer/distillability_agent.cc
@@ -203,6 +203,7 @@ void DistillabilityAgent::DidMeaningfulLayout(
render_frame()->GetRemoteInterfaces()->GetInterface(
&distillability_service);
DCHECK(distillability_service);
+ if (!distillability_service.is_bound()) return;
distillability_service->NotifyIsDistillable(
IsDistillablePage(doc, is_last), is_last);
}
« 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