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

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: Created 3 years, 8 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 (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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 * @param {string} origin The origin that the usage was fetched for. 108 * @param {string} origin The origin that the usage was fetched for.
109 */ 109 */
110 var onUsageCleared = function(origin) { 110 var onUsageCleared = function(origin) {
111 var instance = settings.WebsiteUsagePrivateApi.websiteUsagePolymerInstance; 111 var instance = settings.WebsiteUsagePrivateApi.websiteUsagePolymerInstance;
112 if (instance == null) 112 if (instance == null)
113 return; 113 return;
114 114
115 instance.notifyUsageDeleted(origin); 115 instance.notifyUsageDeleted(origin);
116 }; 116 };
117 117
118 return { websiteUsagePolymerInstance: websiteUsagePolymerInstance, 118 return { websiteUsagePolymerInstance: websiteUsagePolymerInstance,
Dan Beam 2017/04/19 19:04:40 i believe clang-format will remove spaces between
dpapad 2017/04/19 19:19:55 Yes, see http://eslint.org/docs/rules/object-curly
119 fetchUsageTotal: fetchUsageTotal, 119 fetchUsageTotal: fetchUsageTotal,
120 returnUsageTotal: returnUsageTotal, 120 returnUsageTotal: returnUsageTotal,
121 clearUsage: clearUsage, 121 clearUsage: clearUsage,
122 onUsageCleared: onUsageCleared, }; 122 onUsageCleared: onUsageCleared, };
123 }); 123 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698