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

Unified Diff: chrome/browser/resources/settings/site_settings/cookie_tree_node.js

Issue 2649663002: WebUI: Undo some usages of ES6 features that break uglify. (Closed)
Patch Set: Fix i->j Created 3 years, 11 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/settings/site_settings/cookie_tree_node.js
diff --git a/chrome/browser/resources/settings/site_settings/cookie_tree_node.js b/chrome/browser/resources/settings/site_settings/cookie_tree_node.js
index f6c1cbc5d98c54cff5a7558e54d8d587c377b47b..0b64778a458ea864a281fb99f4fa25f2233f6463 100644
--- a/chrome/browser/resources/settings/site_settings/cookie_tree_node.js
+++ b/chrome/browser/resources/settings/site_settings/cookie_tree_node.js
@@ -134,8 +134,10 @@ cr.define('settings', function() {
*/
getCookieList: function() {
var list = [];
- for (var child of this.children_) {
- for (var cookie of child.children_) {
+ for (var i = 0; i < this.children_.length; i++) {
+ var child = this.children_[i];
+ for (var j = 0; j < child.children_.length; j++) {
+ var cookie = child.children_[j];
list.push({title: cookie.data.title,
id: cookie.data.id,
data: cookie.data});

Powered by Google App Engine
This is Rietveld 408576698