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

Unified Diff: components/dom_distiller/content/browser/distillability_driver.h

Issue 2195123002: Only setup distillability mojo if needed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 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 | « no previous file | components/dom_distiller/content/browser/distillability_driver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/content/browser/distillability_driver.h
diff --git a/components/dom_distiller/content/browser/distillability_driver.h b/components/dom_distiller/content/browser/distillability_driver.h
index 7e2ca447b076e29f5ed568054bf8598aa3dc3d91..6bb66870ce260b1fb29769e0b0bffbb2af31617b 100644
--- a/components/dom_distiller/content/browser/distillability_driver.h
+++ b/components/dom_distiller/content/browser/distillability_driver.h
@@ -43,8 +43,12 @@ class DistillabilityDriver
void SetupMojoService(content::RenderFrameHost* frame_host);
void OnDistillability(bool distillable, bool is_last);
+ void SetNeedsMojoSetup();
+
base::Callback<void(bool, bool)> m_delegate_;
+ bool mojo_needs_setup_;
+
base::WeakPtrFactory<DistillabilityDriver> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(DistillabilityDriver);
« no previous file with comments | « no previous file | components/dom_distiller/content/browser/distillability_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698