| 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 9f3449a3bc9189c26a822cdb04a140a970a73d0c..430685e59404859fabe83194baa07fcd3534ae56 100644
|
| --- a/chrome/browser/resources/print_preview/data/app_state.js
|
| +++ b/chrome/browser/resources/print_preview/data/app_state.js
|
| @@ -12,7 +12,7 @@ cr.define('print_preview', function() {
|
| function AppState() {
|
| /**
|
| * Internal representation of application state.
|
| - * @type {Object.<string, print_preview.ValueType>}
|
| + * @type {Object.<string, ?>}
|
| * @private
|
| */
|
| this.state_ = {};
|
| @@ -114,7 +114,7 @@ cr.define('print_preview', function() {
|
|
|
| /**
|
| * @param {!print_preview.AppState.Field} field App state field to get.
|
| - * @return {print_preview.ValueType} Value of the app state field.
|
| + * @return {?} Value of the app state field.
|
| */
|
| getField: function(field) {
|
| if (field == AppState.Field.CUSTOM_MARGINS) {
|
| @@ -135,7 +135,8 @@ cr.define('print_preview', function() {
|
| */
|
| init: function(serializedAppStateStr, systemDefaultDestinationId) {
|
| if (serializedAppStateStr) {
|
| - var state = JSON.parse(serializedAppStateStr);
|
| + var state = /** @type {Object.<string, ?>} */(
|
| + JSON.parse(serializedAppStateStr));
|
| if (state[AppState.Field.VERSION] == AppState.VERSION_) {
|
| this.state_ = state;
|
| }
|
| @@ -166,7 +167,7 @@ cr.define('print_preview', function() {
|
| /**
|
| * Persists the given value for the given field.
|
| * @param {!print_preview.AppState.Field} field Field to persist.
|
| - * @param {print_preview.ValueType} value Value of field to persist.
|
| + * @param {?} value Value of field to persist.
|
| */
|
| persistField: function(field, value) {
|
| if (!this.isInitialized_)
|
|
|