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

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

Issue 2946563002: Run clang-format on .js files in c/b/r/settings (Closed)
Patch Set: dschuyler@ review Created 3 years, 6 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 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 {
120 fetchUsageTotal: fetchUsageTotal, 120 websiteUsagePolymerInstance: websiteUsagePolymerInstance,
121 returnUsageTotal: returnUsageTotal, 121 fetchUsageTotal: fetchUsageTotal,
122 clearUsage: clearUsage, 122 returnUsageTotal: returnUsageTotal,
123 onUsageCleared: onUsageCleared, }; 123 clearUsage: clearUsage,
124 onUsageCleared: onUsageCleared,
125 };
124 }); 126 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698