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

Unified Diff: chrome/browser/resources/print_preview/data/app_state.js

Issue 979303002: Update UI for extension destinations in print preview destination list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 10 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/resources/print_preview/data/destination.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/data/app_state.js
diff --git a/chrome/browser/resources/print_preview/data/app_state.js b/chrome/browser/resources/print_preview/data/app_state.js
index 00c4c050ffaecd9f6513c4b1a5b6e79566b43428..a604e9d8e4436003cbc20844285507d624f20fa3 100644
--- a/chrome/browser/resources/print_preview/data/app_state.js
+++ b/chrome/browser/resources/print_preview/data/app_state.js
@@ -40,6 +40,7 @@ cr.define('print_preview', function() {
SELECTED_DESTINATION_CAPABILITIES: 'selectedDestinationCapabilities',
SELECTED_DESTINATION_NAME: 'selectedDestinationName',
SELECTED_DESTINATION_EXTENSION_ID: 'selectedDestinationExtensionId',
+ SELECTED_DESTINATION_EXTENSION_NAME: 'selectedDestinationExtensionName',
IS_GCP_PROMO_DISMISSED: 'isGcpPromoDismissed',
DPI: 'dpi',
MEDIA_SIZE: 'mediaSize',
@@ -107,6 +108,14 @@ cr.define('print_preview', function() {
return this.state_[AppState.Field.SELECTED_DESTINATION_EXTENSION_ID];
},
+ /**
+ * @return {?string} Extension name associated with the selected
+ * destination.
+ */
+ get selectedDestinationExtensionName() {
+ return this.state_[AppState.Field.SELECTED_DESTINATION_EXTENSION_NAME];
+ },
+
/** @return {boolean} Whether the GCP promotion has been dismissed. */
get isGcpPromoDismissed() {
return this.state_[AppState.Field.IS_GCP_PROMO_DISMISSED];
@@ -203,6 +212,8 @@ cr.define('print_preview', function() {
this.state_[AppState.Field.SELECTED_DESTINATION_NAME] = dest.displayName;
this.state_[AppState.Field.SELECTED_DESTINATION_EXTENSION_ID] =
dest.extensionId;
+ this.state_[AppState.Field.SELECTED_DESTINATION_EXTENSION_NAME] =
+ dest.extensionName;
this.persist_();
},
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/resources/print_preview/data/destination.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698