chromeos: Move //ash/common files into //ash
//ash contains the "Aura Shell" system UI used by Chrome OS. For the
mustash servicification project we initially started moving files into
//ash/mus vs. //ash/aura vs. //ash/common. This allowed us to use DEPS
to ban aura includes. We now support aura on mus all the time, so we
don't need this directory structure.
BUG=690096
TEST=compiles, ash_unittests
[email protected]
Change-Id: I682586877b6c537d2db613664318bbc0365362c6
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Change-Id: I682586877b6c537d2db613664318bbc0365362c6
Reviewed-on: https://chromium-review.googlesource.com/472548
Reviewed-by: James Cook <[email protected]>
Cr-Commit-Position: refs/heads/master@{#463140}
diff --git a/ash/multi_profile_uma.cc b/ash/multi_profile_uma.cc
new file mode 100644
index 0000000..47d0ff8
--- /dev/null
+++ b/ash/multi_profile_uma.cc
@@ -0,0 +1,53 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ash/multi_profile_uma.h"
+
+#include "base/metrics/histogram_macros.h"
+
+namespace ash {
+
+// static
+void MultiProfileUMA::RecordSessionMode(SessionMode action) {
+ UMA_HISTOGRAM_ENUMERATION("MultiProfile.SessionMode", action,
+ NUM_SESSION_MODES);
+}
+
+// static
+void MultiProfileUMA::RecordSigninUser(SigninUserAction action) {
+ UMA_HISTOGRAM_ENUMERATION("MultiProfile.SigninUserUIPath", action,
+ NUM_SIGNIN_USER_ACTIONS);
+}
+
+// static
+void MultiProfileUMA::RecordSwitchActiveUser(SwitchActiveUserAction action) {
+ UMA_HISTOGRAM_ENUMERATION("MultiProfile.SwitchActiveUserUIPath", action,
+ NUM_SWITCH_ACTIVE_USER_ACTIONS);
+}
+
+// static
+void MultiProfileUMA::RecordTeleportWindowType(TeleportWindowType window_type) {
+ UMA_HISTOGRAM_ENUMERATION("MultiProfile.TeleportWindowType", window_type,
+ NUM_TELEPORT_WINDOW_TYPES);
+}
+
+// static
+void MultiProfileUMA::RecordTeleportAction(TeleportWindowAction action) {
+ UMA_HISTOGRAM_ENUMERATION("MultiProfile.TeleportWindow", action,
+ NUM_TELEPORT_WINDOW_ACTIONS);
+}
+
+// static
+void MultiProfileUMA::RecordUserCount(int number_of_users) {
+ UMA_HISTOGRAM_COUNTS_100("MultiProfile.UsersPerSessionIncremental",
+ number_of_users);
+}
+
+// static
+void MultiProfileUMA::RecordDiscardedTab(int number_of_users) {
+ UMA_HISTOGRAM_COUNTS_100("MultiProfile.DiscardedTabsPerUser",
+ number_of_users);
+}
+
+} // namespace ash