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

Unified Diff: chrome/browser/printing/print_preview_dialog_controller.cc

Issue 881553003: Ignore the default zoom level for the PDF extension and print preview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months 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
Index: chrome/browser/printing/print_preview_dialog_controller.cc
diff --git a/chrome/browser/printing/print_preview_dialog_controller.cc b/chrome/browser/printing/print_preview_dialog_controller.cc
index 1f5afab214180bb44c010b454da8c862eeb0c887..4590229260591ca82e2c9f3d56bca70a500aa89e 100644
--- a/chrome/browser/printing/print_preview_dialog_controller.cc
+++ b/chrome/browser/printing/print_preview_dialog_controller.cc
@@ -28,6 +28,7 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/common/url_constants.h"
#include "components/web_modal/web_contents_modal_dialog_host.h"
+#include "content/public/browser/host_zoom_map.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_details.h"
#include "content/public/browser/navigation_entry.h"
@@ -384,6 +385,9 @@ WebContents* PrintPreviewDialogController::CreatePrintPreviewDialog(
initiator);
WebContents* preview_dialog = web_dialog_delegate->GetWebContents();
+ GURL print_url(chrome::kChromeUIPrintURL);
+ content::HostZoomMap::Get(preview_dialog->GetSiteInstance())
+ ->SetZoomLevelForHostAndScheme(print_url.scheme(), print_url.host(), 0);
EnableInternalPDFPluginForContents(preview_dialog);
PrintViewManager::CreateForWebContents(preview_dialog);
extensions::ChromeExtensionWebContentsObserver::CreateForWebContents(

Powered by Google App Engine
This is Rietveld 408576698