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

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

Issue 2185733002: Don't remove DistillabilityService on RenderFrameHost switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/content/browser/distillability_driver.cc
diff --git a/components/dom_distiller/content/browser/distillability_driver.cc b/components/dom_distiller/content/browser/distillability_driver.cc
index 354b3b5f3bbc2acca60adb74ba9b1bfc3b5f776e..f2275b34a9bf6d9c248c6ba5142488532f56793a 100644
--- a/components/dom_distiller/content/browser/distillability_driver.cc
+++ b/components/dom_distiller/content/browser/distillability_driver.cc
@@ -85,10 +85,6 @@ void DistillabilityDriver::RenderFrameHostChanged(
// or from a native page), the service needs to be attached to that host.
mojo_needs_setup_ = true;
SetupMojoService(new_host);
- // Clean up the service on the old host if possible.
- if (!old_host || !old_host->GetInterfaceRegistry()) return;
- old_host->GetInterfaceRegistry()
- ->RemoveInterface<mojom::DistillabilityService>();
}
void DistillabilityDriver::DidStartProvisionalLoadForFrame(
« 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