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

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

Issue 2359393002: Adds media license nodes to cookie tree model and cookies view. (Closed)
Patch Set: Created 4 years, 2 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 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 * title: string, 8 * title: string,
9 * totalUsage: string, 9 * totalUsage: string,
10 * type: string}} 10 * type: string}}
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 'app_cache': loadTimeData.getString('cookieAppCache'), 43 'app_cache': loadTimeData.getString('cookieAppCache'),
44 'cache_storage': loadTimeData.getString('cookieCacheStorage'), 44 'cache_storage': loadTimeData.getString('cookieCacheStorage'),
45 'channel_id': loadTimeData.getString('cookieChannelId'), 45 'channel_id': loadTimeData.getString('cookieChannelId'),
46 'cookie': loadTimeData.getString('cookieSingular'), 46 'cookie': loadTimeData.getString('cookieSingular'),
47 'database': loadTimeData.getString('cookieDatabaseStorage'), 47 'database': loadTimeData.getString('cookieDatabaseStorage'),
48 'file_system': loadTimeData.getString('cookieFileSystem'), 48 'file_system': loadTimeData.getString('cookieFileSystem'),
49 'flash_lso': loadTimeData.getString('cookieFlashLso'), 49 'flash_lso': loadTimeData.getString('cookieFlashLso'),
50 'indexed_db': loadTimeData.getString('cookieDatabaseStorage'), 50 'indexed_db': loadTimeData.getString('cookieDatabaseStorage'),
51 'local_storage': loadTimeData.getString('cookieLocalStorage'), 51 'local_storage': loadTimeData.getString('cookieLocalStorage'),
52 'service_worker': loadTimeData.getString('cookieServiceWorker'), 52 'service_worker': loadTimeData.getString('cookieServiceWorker'),
53 'media_license': loadTimeData.getString('cookieMediaLicense'),
53 }; 54 };
54 55
55 /** 56 /**
56 * Retrieves the human friendly text to show for the type of cookie. 57 * Retrieves the human friendly text to show for the type of cookie.
57 * @param {string} dataType The datatype to look up. 58 * @param {string} dataType The datatype to look up.
58 * @param {string} totalUsage How much data is being consumed. 59 * @param {string} totalUsage How much data is being consumed.
59 * @return {string} The human-friendly description for this cookie. 60 * @return {string} The human-friendly description for this cookie.
60 */ 61 */
61 function getCookieDataCategoryText(dataType, totalUsage) { 62 function getCookieDataCategoryText(dataType, totalUsage) {
62 if (dataType == 'quota') 63 if (dataType == 'quota')
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 root.appendChild(content); 241 root.appendChild(content);
241 } 242 }
242 } 243 }
243 }, 244 },
244 }; 245 };
245 246
246 return { 247 return {
247 CookieTreeNode: CookieTreeNode, 248 CookieTreeNode: CookieTreeNode,
248 }; 249 };
249 }); 250 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698