Index: chrome/renderer/chrome_content_renderer_client.cc |
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc |
index 9991e3b306d86ba9722a1256efed2b1e9aa5daa7..baa2969fe05b1ae4dfeb35f14e783c1ef6af5519 100644 |
--- a/chrome/renderer/chrome_content_renderer_client.cc |
+++ b/chrome/renderer/chrome_content_renderer_client.cc |
@@ -15,6 +15,7 @@ |
#include "base/strings/utf_string_conversions.h" |
#include "base/values.h" |
#include "chrome/common/channel_info.h" |
+#include "chrome/common/chrome_isolated_world_ids.h" |
#include "chrome/common/chrome_paths.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/crash_keys.h" |
@@ -58,6 +59,7 @@ |
#include "components/autofill/content/renderer/password_generation_agent.h" |
#include "components/content_settings/core/common/content_settings_pattern.h" |
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_headers.h" |
+#include "components/dom_distiller/content/renderer/distiller_js_render_frame_observer.h" |
#include "components/dom_distiller/core/url_constants.h" |
#include "components/nacl/renderer/ppb_nacl_private.h" |
#include "components/nacl/renderer/ppb_nacl_private_impl.h" |
@@ -562,6 +564,10 @@ void ChromeContentRendererClient::RenderFrameCreated( |
new NetErrorHelper(render_frame); |
} |
+ // Set up a mojo service to test if this page is a distiller page. |
+ new dom_distiller::DistillerJsRenderFrameObserver( |
+ render_frame, chrome::ISOLATED_WORLD_ID_CHROME_INTERNAL); |
+ |
PasswordAutofillAgent* password_autofill_agent = |
new PasswordAutofillAgent(render_frame); |
PasswordGenerationAgent* password_generation_agent = |