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

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

Issue 10450022: Print Preview Print Destination Search Widget (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Set --bary flag Created 8 years, 7 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_header.js
diff --git a/chrome/browser/resources/print_preview/print_header.js b/chrome/browser/resources/print_preview/print_header.js
index 2d9342975da554b7ba2e8e45562eb375757ac94a..059fb05d26fdd43e1c2a9c7def9317a5cca8f386 100644
--- a/chrome/browser/resources/print_preview/print_header.js
+++ b/chrome/browser/resources/print_preview/print_header.js
@@ -213,7 +213,9 @@ cr.define('print_preview', function() {
*/
onDestinationSelect_: function() {
if (this.destinationStore_.selectedDestination.id ==
- print_preview.Destination.GooglePromotedId.SAVE_AS_PDF) {
+ print_preview.Destination.GooglePromotedId.SAVE_AS_PDF ||
+ this.destinationStore_.selectedDestination.id ==
+ print_preview.Destination.GooglePromotedId.DOCS) {
this.printButton_.textContent = localStrings.getString('saveButton');
} else {
this.printButton_.textContent = localStrings.getString('printButton');

Powered by Google App Engine
This is Rietveld 408576698