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

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

Issue 2351023002: [CUPS] Add a "Manage..." button in the local destinations section of Print Preview Dialog on Chrome… (Closed)
Patch Set: [CUPS] Add a "Manage..." button in the local destinations section of Print Preview Dialog on Chrome… 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/search/destination_search.js
diff --git a/chrome/browser/resources/print_preview/search/destination_search.js b/chrome/browser/resources/print_preview/search/destination_search.js
index f16cb101d6ddc672776b1ee04569712212193395..5484ac943f8b7b2fe513d6fa7093cafb3a8bbc58 100644
--- a/chrome/browser/resources/print_preview/search/destination_search.js
+++ b/chrome/browser/resources/print_preview/search/destination_search.js
@@ -98,7 +98,7 @@ cr.define('print_preview', function() {
this.localList_ = new print_preview.DestinationList(
this,
loadTimeData.getString('localDestinationsTitle'),
- cr.isChromeOS ? null : loadTimeData.getString('manage'));
+ loadTimeData.getString('manage'));
this.addChild(this.localList_);
/**
@@ -688,6 +688,10 @@ cr.define('print_preview', function() {
* @private
*/
onManageLocalDestinationsActivated_: function() {
+ if (cr.isChromeOS) {
dpapad 2016/09/19 22:21:19 Is this the right place to intercept? How about ad
xdai1 2016/09/19 22:53:40 Do you mean PrintPreview.onManageLocalDestinations
dpapad 2016/09/20 00:03:23 I meant the one in print_preview.js. It seems more
xdai1 2016/09/20 17:31:29 Done.
+ window.open(loadTimeData.getString('localPrintersManagementURL'));
+ return;
+ }
cr.dispatchSimpleEvent(
this,
print_preview.DestinationSearch.EventType.MANAGE_LOCAL_DESTINATIONS);
« no previous file with comments | « no previous file | chrome/browser/ui/webui/print_preview/print_preview_ui.cc » ('j') | chrome/common/url_constants.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698