| 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);
|
| };
|
|
|
|
|