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

Unified Diff: chrome/browser/resources/print_preview/print_preview.js

Issue 2351023002: [CUPS] Add a "Manage..." button in the local destinations section of Print Preview Dialog on Chrome… (Closed)
Patch Set: Address dpapad@'s comments. Created 4 years, 3 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/resources/print_preview/print_preview.js
diff --git a/chrome/browser/resources/print_preview/print_preview.js b/chrome/browser/resources/print_preview/print_preview.js
index f220da8eaeb845729eb80a29096f610b74a8c73a..21fecce6aae3b355f7bda7d23cd63f00d7f11d57 100644
--- a/chrome/browser/resources/print_preview/print_preview.js
+++ b/chrome/browser/resources/print_preview/print_preview.js
@@ -963,6 +963,10 @@ cr.define('print_preview', function() {
* @private
*/
onManageLocalDestinationsActivated_: function() {
+ if (cr.isChromeOS && loadTimeData.getBoolean('showLocalManageButton')) {
Dan Beam 2016/09/21 20:56:25 if (loadTimeData.valueExists('localPrintersManagem
dpapad 2016/09/21 20:58:23 I think the confusing part is here. Why would this
xdai1 2016/09/21 23:38:53 You're right that we won't get the event in the fi
dpapad 2016/09/22 00:18:15 That looks fine. Alternatively, we could just do t
+ window.open(loadTimeData.getString('localPrintersManagementURL'));
+ return;
+ }
this.nativeLayer_.startManageLocalDestinations();
},

Powered by Google App Engine
This is Rietveld 408576698