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

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 dbeam@'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 02:08:40 getBoolean() fails if the boolean isn't set it se
xdai1 2016/09/21 18:03:21 I think that's the reason we need the first clause
dpapad 2016/09/21 18:13:47 dbeam's suggestion 2, seems a bit cleaner. showLoc
xdai1 2016/09/21 18:36:14 See the comment below. I think I made a mistake in
+ window.open(loadTimeData.getString('localPrintersManagementURL'));
+ return;
+ }
this.nativeLayer_.startManageLocalDestinations();
},

Powered by Google App Engine
This is Rietveld 408576698