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

Unified Diff: pkg/microlytics/lib/microlytics.dart

Issue 2770573002: Run dartfmt on microlytics package. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « pkg/microlytics/lib/io_channels.dart ('k') | pkg/microlytics/test/dart_microlytics_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/microlytics/lib/microlytics.dart
diff --git a/pkg/microlytics/lib/microlytics.dart b/pkg/microlytics/lib/microlytics.dart
index 84d89e3257d249b1067d103d3d6035033bdaa4ff..509ae26dea7fba4cdecc88dd002ba7ee272e09e6 100644
--- a/pkg/microlytics/lib/microlytics.dart
+++ b/pkg/microlytics/lib/microlytics.dart
@@ -26,22 +26,20 @@ class AnalyticsLogger {
AnalyticsLogger(Channel channel, String clientID, String analyticsID,
String appName, String appVersion)
: this._channel = channel,
- this._clientID = clientID,
- this._analyticsID = analyticsID,
- this._appName = appName,
- this._appVersion = appVersion,
- this._messagePrefix =
- "v=1"
- "&tid=$analyticsID"
- "&cid=$clientID"
- "&an=$appName"
- "&av=$appVersion";
+ this._clientID = clientID,
+ this._analyticsID = analyticsID,
+ this._appName = appName,
+ this._appVersion = appVersion,
+ this._messagePrefix = "v=1"
+ "&tid=$analyticsID"
+ "&cid=$clientID"
+ "&an=$appName"
+ "&av=$appVersion";
void logAnonymousTiming(String category, String variable, int ms) {
category = Uri.encodeComponent(category);
variable = Uri.encodeComponent(variable);
- _channel.sendData(
- "${this._messagePrefix}"
+ _channel.sendData("${this._messagePrefix}"
"&t=timing"
"&utc=$category"
"&utv=$variable"
@@ -51,11 +49,9 @@ class AnalyticsLogger {
void logAnonymousEvent(String category, String event) {
category = Uri.encodeComponent(category);
event = Uri.encodeComponent(event);
- _channel.sendData(
- "${this._messagePrefix}"
+ _channel.sendData("${this._messagePrefix}"
"&t=event"
"&ec=$category"
"&ea=$event");
}
}
-
« no previous file with comments | « pkg/microlytics/lib/io_channels.dart ('k') | pkg/microlytics/test/dart_microlytics_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698