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

Unified Diff: chrome/browser/resources/print_preview/metrics.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: 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 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 f301ef0f9c0ced8fb9b4f63f947de5cf6c26f767..dd4d1ae392b72ec7415fb082a5d27a405d650eb1 100644
--- a/chrome/browser/resources/print_preview/metrics.js
+++ b/chrome/browser/resources/print_preview/metrics.js
@@ -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);
}

Powered by Google App Engine
This is Rietveld 408576698