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

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

Issue 2834433002: MD Settings: ESLint --fix output, WIP. (Closed)
Patch Set: Relax Created 3 years, 7 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
« no previous file with comments | « chrome/browser/resources/settings/site_settings/cookie_tree_node.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 (function() { 5 (function() {
6 'use strict'; 6 'use strict';
7 7
8 Polymer({ 8 Polymer({
9 is: 'website-usage-private-api', 9 is: 'website-usage-private-api',
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 * @param {string} origin The origin that the usage was fetched for. 109 * @param {string} origin The origin that the usage was fetched for.
110 */ 110 */
111 var onUsageCleared = function(origin) { 111 var onUsageCleared = function(origin) {
112 var instance = settings.WebsiteUsagePrivateApi.websiteUsagePolymerInstance; 112 var instance = settings.WebsiteUsagePrivateApi.websiteUsagePolymerInstance;
113 if (instance == null) 113 if (instance == null)
114 return; 114 return;
115 115
116 instance.notifyUsageDeleted(origin); 116 instance.notifyUsageDeleted(origin);
117 }; 117 };
118 118
119 return { websiteUsagePolymerInstance: websiteUsagePolymerInstance, 119 return {websiteUsagePolymerInstance: websiteUsagePolymerInstance,
120 fetchUsageTotal: fetchUsageTotal, 120 fetchUsageTotal: fetchUsageTotal,
121 returnUsageTotal: returnUsageTotal, 121 returnUsageTotal: returnUsageTotal,
122 clearUsage: clearUsage, 122 clearUsage: clearUsage,
123 onUsageCleared: onUsageCleared, }; 123 onUsageCleared: onUsageCleared};
124 }); 124 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/site_settings/cookie_tree_node.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698