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

Side by Side Diff: ios/chrome/browser/metrics/ios_chrome_metrics_service_accessor.cc

Issue 1544743002: Switch to standard integer types in ios/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/metrics/ios_chrome_metrics_service_accessor.h" 5 #include "ios/chrome/browser/metrics/ios_chrome_metrics_service_accessor.h"
6 6
7 #include <stdint.h>
8
7 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
8 #include "ios/chrome/browser/application_context.h" 10 #include "ios/chrome/browser/application_context.h"
9 11
10 // static 12 // static
11 bool IOSChromeMetricsServiceAccessor::IsMetricsAndCrashReportingEnabled() { 13 bool IOSChromeMetricsServiceAccessor::IsMetricsAndCrashReportingEnabled() {
12 return IsMetricsReportingEnabled(GetApplicationContext()->GetLocalState()); 14 return IsMetricsReportingEnabled(GetApplicationContext()->GetLocalState());
13 } 15 }
14 16
15 // static 17 // static
16 bool IOSChromeMetricsServiceAccessor::RegisterSyntheticFieldTrial( 18 bool IOSChromeMetricsServiceAccessor::RegisterSyntheticFieldTrial(
17 const std::string& trial_name, 19 const std::string& trial_name,
18 const std::string& group_name) { 20 const std::string& group_name) {
19 return metrics::MetricsServiceAccessor::RegisterSyntheticFieldTrial( 21 return metrics::MetricsServiceAccessor::RegisterSyntheticFieldTrial(
20 GetApplicationContext()->GetMetricsService(), trial_name, group_name); 22 GetApplicationContext()->GetMetricsService(), trial_name, group_name);
21 } 23 }
22 24
23 // static 25 // static
24 bool IOSChromeMetricsServiceAccessor::RegisterSyntheticFieldTrialWithNameHash( 26 bool IOSChromeMetricsServiceAccessor::RegisterSyntheticFieldTrialWithNameHash(
25 uint32_t trial_name_hash, 27 uint32_t trial_name_hash,
26 const std::string& group_name) { 28 const std::string& group_name) {
27 return metrics::MetricsServiceAccessor:: 29 return metrics::MetricsServiceAccessor::
28 RegisterSyntheticFieldTrialWithNameHash( 30 RegisterSyntheticFieldTrialWithNameHash(
29 GetApplicationContext()->GetMetricsService(), trial_name_hash, 31 GetApplicationContext()->GetMetricsService(), trial_name_hash,
30 group_name); 32 group_name);
31 } 33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698