Chromium Code Reviews| 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(); |
| }, |