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

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: rebase 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 'app_cache': loadTimeData.getString('cookieAppCache'), 49 'app_cache': loadTimeData.getString('cookieAppCache'),
50 'cache_storage': loadTimeData.getString('cookieCacheStorage'), 50 'cache_storage': loadTimeData.getString('cookieCacheStorage'),
51 'channel_id': loadTimeData.getString('cookieChannelId'), 51 'channel_id': loadTimeData.getString('cookieChannelId'),
52 'cookie': loadTimeData.getString('cookieSingular'), 52 'cookie': loadTimeData.getString('cookieSingular'),
53 'database': loadTimeData.getString('cookieDatabaseStorage'), 53 'database': loadTimeData.getString('cookieDatabaseStorage'),
54 'file_system': loadTimeData.getString('cookieFileSystem'), 54 'file_system': loadTimeData.getString('cookieFileSystem'),
55 'flash_lso': loadTimeData.getString('cookieFlashLso'), 55 'flash_lso': loadTimeData.getString('cookieFlashLso'),
56 'indexed_db': loadTimeData.getString('cookieDatabaseStorage'), 56 'indexed_db': loadTimeData.getString('cookieDatabaseStorage'),
57 'local_storage': loadTimeData.getString('cookieLocalStorage'), 57 'local_storage': loadTimeData.getString('cookieLocalStorage'),
58 'service_worker': loadTimeData.getString('cookieServiceWorker'), 58 'service_worker': loadTimeData.getString('cookieServiceWorker'),
59 'media_license': loadTimeData.getString('cookieMediaLicense'),
59 }; 60 };
60 61
61 /** 62 /**
62 * Retrieves the human friendly text to show for the type of cookie. 63 * Retrieves the human friendly text to show for the type of cookie.
63 * @param {string} dataType The datatype to look up. 64 * @param {string} dataType The datatype to look up.
64 * @param {string} totalUsage How much data is being consumed. 65 * @param {string} totalUsage How much data is being consumed.
65 * @return {string} The human-friendly description for this cookie. 66 * @return {string} The human-friendly description for this cookie.
66 */ 67 */
67 function getCookieDataCategoryText(dataType, totalUsage) { 68 function getCookieDataCategoryText(dataType, totalUsage) {
68 if (dataType == 'quota') 69 if (dataType == 'quota')
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 } 252 }
252 } 253 }
253 return out; 254 return out;
254 }, 255 },
255 }; 256 };
256 257
257 return { 258 return {
258 CookieTreeNode: CookieTreeNode, 259 CookieTreeNode: CookieTreeNode,
259 }; 260 };
260 }); 261 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/site_settings/cookie_info.js ('k') | chrome/browser/ui/webui/cookies_tree_model_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698