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 c8f067efd268c4e3c368302aa7b01ab0127536f8..ce2c34a62361966d1f8e2424bafc15140ff0f970 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" |
@@ -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" |
@@ -559,6 +561,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 = |