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

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_handler.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/browser/ui/webui/print_preview/print_preview_handler.h ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/print_preview/print_preview_handler.cc
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
index acd2fe5ddea5d155881f8a0b34d4c4926e64ab54..cccfd466feef110d2a1ba7cd56375ee64c26b83b 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
@@ -58,7 +58,6 @@
#include "components/cloud_devices/common/cloud_device_description.h"
#include "components/cloud_devices/common/cloud_devices_urls.h"
#include "components/cloud_devices/common/printer_description.h"
-#include "components/dom_distiller/content/browser/distillable_page_utils.h"
#include "components/dom_distiller/core/dom_distiller_switches.h"
#include "components/dom_distiller/core/url_utils.h"
#include "components/printing/common/print_messages.h"
@@ -1285,17 +1284,8 @@ void PrintPreviewHandler::SendInitialSettings(
if (initiator && cmdline->HasSwitch(switches::kEnableDomDistiller) &&
dom_distiller::url_utils::IsUrlDistillable(
initiator->GetLastCommittedURL())) {
- dom_distiller::IsDistillablePage(
- initiator, false,
- base::Bind(&PrintPreviewHandler::HandleIsPageDistillableResult,
- weak_factory_.GetWeakPtr()));
- }
-}
-
-void PrintPreviewHandler::HandleIsPageDistillableResult(bool distillable) {
- VLOG(1) << "Distillable page detection finished";
- if (distillable)
web_ui()->CallJavascriptFunction("detectDistillablePage");
+ }
}
void PrintPreviewHandler::ClosePreviewDialog() {
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_handler.h ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698