diff options
author | cimamoglu@chromium.org <cimamoglu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-19 18:58:43 +0000 |
---|---|---|
committer | cimamoglu@chromium.org <cimamoglu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-19 18:58:43 +0000 |
commit | cdd7c0cc1d4eac44ea7885b53805f110e062ff6c (patch) | |
tree | 4f3016b8efb981e921b84f05a98068049669aac8 /chrome/renderer/printing | |
parent | a421132d8194fe692b917946ad5292f1db5e3775 (diff) | |
download | chromium_src-cdd7c0cc1d4eac44ea7885b53805f110e062ff6c.zip chromium_src-cdd7c0cc1d4eac44ea7885b53805f110e062ff6c.tar.gz chromium_src-cdd7c0cc1d4eac44ea7885b53805f110e062ff6c.tar.bz2 |
Disables window.print() for Android
BUG=292448
Review URL: https://chromiumcodereview.appspot.com/23536064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224177 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/printing')
-rw-r--r-- | chrome/renderer/printing/print_web_view_helper.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/renderer/printing/print_web_view_helper.cc b/chrome/renderer/printing/print_web_view_helper.cc index b5bca33..bf3e3c7 100644 --- a/chrome/renderer/printing/print_web_view_helper.cc +++ b/chrome/renderer/printing/print_web_view_helper.cc @@ -755,6 +755,9 @@ PrintWebViewHelper::~PrintWebViewHelper() {} bool PrintWebViewHelper::IsScriptInitiatedPrintAllowed( WebKit::WebFrame* frame, bool user_initiated) { +#if defined(OS_ANDROID) + return false; +#endif // defined(OS_ANDROID) if (is_scripted_printing_blocked_) return false; // If preview is enabled, then the print dialog is tab modal, and the user |