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 29fe11c3f239c7bde22bc570b5e4413458e3d82d..0b43f969c2b6eedbb53ca9222876c84b7e0eb141 100644 |
--- a/chrome/renderer/chrome_content_renderer_client.cc |
+++ b/chrome/renderer/chrome_content_renderer_client.cc |
@@ -14,6 +14,7 @@ |
#include "base/strings/string_util.h" |
#include "base/strings/utf_string_conversions.h" |
#include "base/values.h" |
+#include "chrome/common/chrome_isolated_world_ids.h" |
#include "chrome/common/chrome_paths.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/chrome_version_info.h" |
@@ -60,6 +61,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" |
@@ -558,6 +560,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 = |