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

Side by Side Diff: ash/multi_profile_uma.cc

Issue 180243025: Changing the UsersPerSession UMA metric to only count possible multi profile sessions and do this u… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/multi_profile_uma.h" 5 #include "ash/multi_profile_uma.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 8
9 namespace ash { 9 namespace ash {
10 10
(...skipping 27 matching lines...) Expand all
38 38
39 // static 39 // static
40 void MultiProfileUMA::RecordTeleportAction(TeleportWindowAction action) { 40 void MultiProfileUMA::RecordTeleportAction(TeleportWindowAction action) {
41 UMA_HISTOGRAM_ENUMERATION("MultiProfile.TeleportWindow", 41 UMA_HISTOGRAM_ENUMERATION("MultiProfile.TeleportWindow",
42 action, 42 action,
43 NUM_TELEPORT_WINDOW_ACTIONS); 43 NUM_TELEPORT_WINDOW_ACTIONS);
44 } 44 }
45 45
46 // static 46 // static
47 void MultiProfileUMA::RecordUserCount(int number_of_users) { 47 void MultiProfileUMA::RecordUserCount(int number_of_users) {
48 UMA_HISTOGRAM_COUNTS_100("MultiProfile.UsersPerSession", number_of_users); 48 UMA_HISTOGRAM_COUNTS_100("MultiProfile.UsersPerSessionIncremental",
49 number_of_users);
49 } 50 }
50 51
51 // static 52 // static
52 void MultiProfileUMA::RecordDiscardedTab(int number_of_users) { 53 void MultiProfileUMA::RecordDiscardedTab(int number_of_users) {
53 UMA_HISTOGRAM_COUNTS_100("MultiProfile.DiscardedTabsPerUser", 54 UMA_HISTOGRAM_COUNTS_100("MultiProfile.DiscardedTabsPerUser",
54 number_of_users); 55 number_of_users);
55 } 56 }
56 57
57 } // namespace ash 58 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698