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

Unified Diff: ui/login/screen.js

Issue 2094193004: Strip comments and whitespace from Javascript resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comments, plus rebases. Created 4 years, 5 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
« tools/grit/grit_rule.gni ('K') | « tools/grit/grit_rule.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/login/screen.js
diff --git a/ui/login/screen.js b/ui/login/screen.js
index 960632a6e25496beac66bb7193a772b4a5259e5b..eb14e0a102fdd8b73501b0a3dbd62d84260244d4 100644
--- a/ui/login/screen.js
+++ b/ui/login/screen.js
@@ -384,11 +384,8 @@ cr.define('login', function() {
Oobe.getInstance().registerScreen(screen);
};
- cr.define('login', function() {
- var result = {};
- result[name] = api;
- return result;
- });
+ cr.exportPath('login'); // ensures window.login exists
+ login[name] = api; // exposes globally
Dan Beam 2016/07/14 17:47:59 you probably don't need to copy this comments, or
}
};
});
« tools/grit/grit_rule.gni ('K') | « tools/grit/grit_rule.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698