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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 1248643004: Test distillability without JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@early
Patch Set: fix browsertest, merge webkit CL, merge http://crrev.com/1403413004 Created 5 years, 1 month 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 | « chrome/chrome_tests.gypi ('k') | chrome/test/data/dom_distiller/non_og_article.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 72a3cd95e4555fec9c144a5e2873fe9c520d6a45..01909dcf8f0fc87e897ba810a073bcde5413202e 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -59,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/distillability_agent.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"
@@ -572,6 +573,8 @@ void ChromeContentRendererClient::RenderFrameCreated(
new dom_distiller::DistillerJsRenderFrameObserver(
render_frame, chrome::ISOLATED_WORLD_ID_CHROME_INTERNAL);
+ new dom_distiller::DistillabilityAgent(render_frame);
+
PasswordAutofillAgent* password_autofill_agent =
new PasswordAutofillAgent(render_frame);
PasswordGenerationAgent* password_generation_agent =
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/dom_distiller/non_og_article.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698