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

Unified Diff: chrome/browser/resources/settings/site_settings/website_usage_private_api.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/site_settings/website_usage_private_api.js
diff --git a/chrome/browser/resources/settings/site_settings/website_usage_private_api.js b/chrome/browser/resources/settings/site_settings/website_usage_private_api.js
index 33c874da37e6412ab4713687c19cf9c761323a2b..1fd852838cf10bc001cf093da5cbcdacf7ee95b8 100644
--- a/chrome/browser/resources/settings/site_settings/website_usage_private_api.js
+++ b/chrome/browser/resources/settings/site_settings/website_usage_private_api.js
@@ -3,51 +3,51 @@
// found in the LICENSE file.
(function() {
-'use strict';
+ 'use strict';
+
+ Polymer({
+ is: 'website-usage-private-api',
+
+ properties: {
+ /**
+ * The amount of data used by the given website.
+ */
+ websiteDataUsage: {
+ type: String,
+ notify: true,
+ },
+
+ /**
+ * The type of data used by the given website.
+ */
+ websiteStorageType: {
+ type: Number,
+ notify: true,
+ },
+ },
-Polymer({
- is: 'website-usage-private-api',
+ attached: function() {
+ settings.WebsiteUsagePrivateApi.websiteUsagePolymerInstance = this;
+ },
- properties: {
- /**
- * The amount of data used by the given website.
- */
- websiteDataUsage: {
- type: String,
- notify: true,
+ /** @param {string} host */
+ fetchUsageTotal: function(host) {
+ settings.WebsiteUsagePrivateApi.fetchUsageTotal(host);
},
/**
- * The type of data used by the given website.
+ * @param {string} origin
+ * @param {number} type
*/
- websiteStorageType: {
- type: Number,
- notify: true,
+ clearUsage: function(origin, type) {
+ settings.WebsiteUsagePrivateApi.clearUsage(origin, type);
},
- },
-
- attached: function() {
- settings.WebsiteUsagePrivateApi.websiteUsagePolymerInstance = this;
- },
-
- /** @param {string} host */
- fetchUsageTotal: function(host) {
- settings.WebsiteUsagePrivateApi.fetchUsageTotal(host);
- },
- /**
- * @param {string} origin
- * @param {number} type
- */
- clearUsage: function(origin, type) {
- settings.WebsiteUsagePrivateApi.clearUsage(origin, type);
- },
-
- /** @param {string} origin */
- notifyUsageDeleted: function(origin) {
- this.fire('usage-deleted', {origin: origin});
- },
-});
+ /** @param {string} origin */
+ notifyUsageDeleted: function(origin) {
+ this.fire('usage-deleted', {origin: origin});
+ },
+ });
})();
cr.define('settings.WebsiteUsagePrivateApi', function() {
@@ -115,9 +115,11 @@ cr.define('settings.WebsiteUsagePrivateApi', function() {
instance.notifyUsageDeleted(origin);
};
- return { websiteUsagePolymerInstance: websiteUsagePolymerInstance,
- fetchUsageTotal: fetchUsageTotal,
- returnUsageTotal: returnUsageTotal,
- clearUsage: clearUsage,
- onUsageCleared: onUsageCleared, };
+ return {
+ websiteUsagePolymerInstance: websiteUsagePolymerInstance,
+ fetchUsageTotal: fetchUsageTotal,
+ returnUsageTotal: returnUsageTotal,
+ clearUsage: clearUsage,
+ onUsageCleared: onUsageCleared,
+ };
});

Powered by Google App Engine
This is Rietveld 408576698