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

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

Issue 606213002: Compile print_preview, part 6: reduce down to 48 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@J_print_preview_5
Patch Set: vitalybuka@'s review Created 6 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/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 d56e867bfe1401d809e371089554f24b73218338..793c533c3f6d20f97c12e1d3484083c6cb853c18 100644
--- a/chrome/browser/resources/print_preview/data/app_state.js
+++ b/chrome/browser/resources/print_preview/data/app_state.js
@@ -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;
}

Powered by Google App Engine
This is Rietveld 408576698