Commit 1a154cfd authored by thestig's avatar thestig Committed by Commit bot

Fix bad refactoring in r467153.

BUG=717765
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2861963002
Cr-Commit-Position: refs/heads/master@{#469406}
parent 6613920d
...@@ -26,11 +26,11 @@ cr.define('print_preview', function() { ...@@ -26,11 +26,11 @@ cr.define('print_preview', function() {
/** @override */ /** @override */
updateDestinations: function(destinations) { updateDestinations: function(destinations) {
// Change the action link from "Manage..." to "Setup..." if user only has // Change the action link from "Manage..." to "Setup..." if user only has
// Docs printers. // the Docs printer.
var docsId = print_preview.Destination.GooglePromotedId.DOCS; var docsId = print_preview.Destination.GooglePromotedId.DOCS;
this.setActionLinkTextInternal( this.setActionLinkTextInternal(loadTimeData.getString(
destinations.length == 1 && destinations[0].id == docsId ? destinations.length == 1 && destinations[0].id == docsId ?
'setupCloudPrinters' : 'manage'); 'setupCloudPrinters' : 'manage'));
print_preview.DestinationList.prototype.updateDestinations.call( print_preview.DestinationList.prototype.updateDestinations.call(
this, destinations); this, destinations);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment