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

Side by Side Diff: components/signin/core/browser/signin_metrics.cc

Issue 2771233002: Remove the wrapper functions content::RecordAction et al (Closed)
Patch Set: Rebased Created 3 years, 8 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/signin/core/browser/signin_metrics.h" 5 #include "components/signin/core/browser/signin_metrics.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
11 #include "base/metrics/user_metrics.h"
12 #include "base/time/time.h" 11 #include "base/time/time.h"
13 12
14 namespace signin_metrics { 13 namespace signin_metrics {
15 14
16 // Helper method to determine which |DifferentPrimaryAccounts| applies. 15 // Helper method to determine which |DifferentPrimaryAccounts| applies.
17 DifferentPrimaryAccounts ComparePrimaryAccounts(bool primary_accounts_same, 16 DifferentPrimaryAccounts ComparePrimaryAccounts(bool primary_accounts_same,
18 int pre_count_gaia_cookies) { 17 int pre_count_gaia_cookies) {
19 if (primary_accounts_same) 18 if (primary_accounts_same)
20 return ACCOUNTS_SAME; 19 return ACCOUNTS_SAME;
21 if (pre_count_gaia_cookies == 0) 20 if (pre_count_gaia_cookies == 0)
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 "Signin.CookieJar.ChromeAccountRelation", type, 190 "Signin.CookieJar.ChromeAccountRelation", type,
192 static_cast<int>(relation), 191 static_cast<int>(relation),
193 static_cast<int>(AccountRelation::HISTOGRAM_COUNT)); 192 static_cast<int>(AccountRelation::HISTOGRAM_COUNT));
194 } 193 }
195 194
196 void LogIsShared(const bool is_shared, const ReportingType type) { 195 void LogIsShared(const bool is_shared, const ReportingType type) {
197 INVESTIGATOR_HISTOGRAM_BOOLEAN("Signin.IsShared", type, is_shared); 196 INVESTIGATOR_HISTOGRAM_BOOLEAN("Signin.IsShared", type, is_shared);
198 } 197 }
199 198
200 } // namespace signin_metrics 199 } // namespace signin_metrics
OLDNEW
« no previous file with comments | « components/safe_browsing/base_blocking_page.cc ('k') | components/storage_monitor/volume_mount_watcher_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698