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

Unified Diff: remoting/webapp/crd/js/apps_v2_migration.js

Issue 959963002: [Chromoting] Enable jscompile for webapp unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix key tester 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 | « remoting/webapp/crd/html/template_unittest.html ('k') | remoting/webapp/crd/js/oauth2.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/apps_v2_migration.js
diff --git a/remoting/webapp/crd/js/apps_v2_migration.js b/remoting/webapp/crd/js/apps_v2_migration.js
index 3f49883f2b26f624b1874ab0ba5733187265e66c..aab9994badb23d7b6a018c6d522ef21b86d5c7ad 100644
--- a/remoting/webapp/crd/js/apps_v2_migration.js
+++ b/remoting/webapp/crd/js/apps_v2_migration.js
@@ -22,9 +22,9 @@ var remoting = remoting || {};
var MIGRATION_KEY_ = 'remoting-v2-migration';
/**
- * @constructor
* @param {string} email
* @param {string} fullName
+ * @constructor
*/
remoting.MigrationSettings = function(email, fullName) {
this.email = email;
@@ -88,16 +88,14 @@ remoting.AppsV2Migration.saveUserInfo = function() {
if (base.isAppsV2()) {
chrome.storage.local.remove(MIGRATION_KEY_);
} else {
- /**
- * @param {string} email
- * @param {string} fullName
- */
- remoting.identity.getUserInfo().then(function(userInfo) {
- var preference = {};
- preference[MIGRATION_KEY_] =
- new remoting.MigrationSettings(userInfo.email, userInfo.name);
- chrome.storage.local.set(preference);
- }).catch(base.doNothing);
+ remoting.identity.getUserInfo().then(
+ /** @param {{email:string, name:string}} userInfo */
+ function(userInfo) {
+ var preference = {};
+ preference[MIGRATION_KEY_] =
+ new remoting.MigrationSettings(userInfo.email, userInfo.name);
+ chrome.storage.local.set(preference);
+ }).catch(base.doNothing);
}
};
« no previous file with comments | « remoting/webapp/crd/html/template_unittest.html ('k') | remoting/webapp/crd/js/oauth2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698