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

Side by Side Diff: chrome/browser/resources/settings/site_settings/cookie_info.js

Issue 2476753002: [MD settings] get cookie details from site without transfering cookie tree (Closed)
Patch Set: closure fix Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @typedef {{hasChildren: boolean, 6 * @typedef {{hasChildren: boolean,
7 * id: string, 7 * id: string,
8 * idPath: string,
8 * title: string, 9 * title: string,
9 * totalUsage: string, 10 * totalUsage: string,
10 * type: string}} 11 * type: string}}
11 */ 12 */
12 var CookieDetails; 13 var CookieDetails;
13 14
14 /** 15 /**
15 * @typedef {{content: string, 16 * @typedef {{content: string,
16 * label: string}} 17 * label: string}}
17 */ 18 */
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 if (data[key].length > 0) { 83 if (data[key].length > 0) {
83 var entry = /** @type {CookieDataForDisplay} */({ 84 var entry = /** @type {CookieDataForDisplay} */({
84 label: loadTimeData.getString(field[1]), 85 label: loadTimeData.getString(field[1]),
85 content: data[key], 86 content: data[key],
86 }); 87 });
87 out.push(entry); 88 out.push(entry);
88 } 89 }
89 } 90 }
90 return out; 91 return out;
91 }; 92 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698