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

Unified Diff: chrome/browser/resources/print_preview/metrics.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/print_preview/metrics.js
diff --git a/chrome/browser/resources/print_preview/metrics.js b/chrome/browser/resources/print_preview/metrics.js
index a37a94cda9d74f0582709e541e4e50bb1203ee84..cf167631a5493c878cf4f005a14aed9ba586b807 100644
--- a/chrome/browser/resources/print_preview/metrics.js
+++ b/chrome/browser/resources/print_preview/metrics.js
@@ -9,7 +9,7 @@ cr.define('print_preview', function() {
* Object used to measure usage statistics.
* @constructor
*/
- function Metrics() {};
+ function Metrics(){};
/**
* Enumeration of buckets that a user can enter while using the destination
@@ -114,10 +114,10 @@ cr.define('print_preview', function() {
* @param {number} bucket Value to record.
*/
record: function(bucket) {
- chrome.send('metricsHandler:recordInHistogram',
- [this.histogram_,
- ((bucket > this.maxBucket_) ? this.maxBucket_ : bucket),
- this.maxBucket_]);
+ chrome.send('metricsHandler:recordInHistogram', [
+ this.histogram_,
+ ((bucket > this.maxBucket_) ? this.maxBucket_ : bucket), this.maxBucket_
+ ]);
}
};
@@ -128,8 +128,7 @@ cr.define('print_preview', function() {
*/
function DestinationSearchMetricsContext() {
MetricsContext.call(
- this,
- 'PrintPreview.DestinationAction',
+ this, 'PrintPreview.DestinationAction',
Metrics.DestinationSearchBucket.DESTINATION_SEARCH_MAX_BUCKET);
};
@@ -143,14 +142,12 @@ cr.define('print_preview', function() {
* @extends {print_preview.MetricsContext}
*/
function GcpPromoMetricsContext() {
- MetricsContext.call(this,
- 'PrintPreview.GcpPromo',
- Metrics.GcpPromoBucket.GCP_PROMO_MAX_BUCKET);
+ MetricsContext.call(
+ this, 'PrintPreview.GcpPromo',
+ Metrics.GcpPromoBucket.GCP_PROMO_MAX_BUCKET);
};
- GcpPromoMetricsContext.prototype = {
- __proto__: MetricsContext.prototype
- };
+ GcpPromoMetricsContext.prototype = {__proto__: MetricsContext.prototype};
/**
* Print settings UI specific usage statistics context.
@@ -159,8 +156,7 @@ cr.define('print_preview', function() {
*/
function PrintSettingsUiMetricsContext() {
MetricsContext.call(
- this,
- 'PrintPreview.PrintSettingsUi',
+ this, 'PrintPreview.PrintSettingsUi',
Metrics.PrintSettingsUiBucket.PRINT_SETTINGS_UI_MAX_BUCKET);
};
« no previous file with comments | « chrome/browser/resources/print_preview/data/user_info.js ('k') | chrome/browser/resources/print_preview/native_layer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698