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

Side by Side Diff: ios/chrome/today_extension/today_metrics_logger.mm

Issue 2879703002: WebView: Add channel info for UMA (Closed)
Patch Set: rebase Created 3 years, 6 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
« no previous file with comments | « ios/chrome/common/channel_info.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #import <UIKit/UIKit.h> 5 #import <UIKit/UIKit.h>
6 6
7 #import "ios/chrome/today_extension/today_metrics_logger.h" 7 #import "ios/chrome/today_extension/today_metrics_logger.h"
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/cpu.h" 10 #include "base/cpu.h"
11 #include "base/mac/bind_objc_block.h" 11 #include "base/mac/bind_objc_block.h"
12 #import "base/mac/scoped_nsobject.h" 12 #import "base/mac/scoped_nsobject.h"
13 #include "base/metrics/histogram_base.h" 13 #include "base/metrics/histogram_base.h"
14 #include "base/metrics/histogram_macros.h" 14 #include "base/metrics/histogram_macros.h"
15 #include "base/metrics/statistics_recorder.h" 15 #include "base/metrics/statistics_recorder.h"
16 #include "base/strings/sys_string_conversions.h" 16 #include "base/strings/sys_string_conversions.h"
17 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
18 #include "base/sys_info.h" 18 #include "base/sys_info.h"
19 #include "base/threading/sequenced_worker_pool.h" 19 #include "base/threading/sequenced_worker_pool.h"
20 #include "components/metrics/metrics_log.h" 20 #include "components/metrics/metrics_log.h"
21 #include "components/metrics/metrics_log_uploader.h" 21 #include "components/metrics/metrics_log_uploader.h"
22 #include "components/metrics/metrics_pref_names.h" 22 #include "components/metrics/metrics_pref_names.h"
23 #include "components/metrics/metrics_provider.h" 23 #include "components/metrics/metrics_provider.h"
24 #include "components/metrics/metrics_service_client.h" 24 #include "components/metrics/metrics_service_client.h"
25 #include "components/metrics/net/version_utils.h" 25 #include "components/metrics/version_utils.h"
26 #include "components/prefs/json_pref_store.h" 26 #include "components/prefs/json_pref_store.h"
27 #include "components/prefs/pref_registry_simple.h" 27 #include "components/prefs/pref_registry_simple.h"
28 #include "components/prefs/pref_service.h" 28 #include "components/prefs/pref_service.h"
29 #include "components/prefs/pref_service_factory.h" 29 #include "components/prefs/pref_service_factory.h"
30 #include "components/prefs/value_map_pref_store.h" 30 #include "components/prefs/value_map_pref_store.h"
31 #include "components/variations/active_field_trials.h" 31 #include "components/variations/active_field_trials.h"
32 #include "components/version_info/version_info.h" 32 #include "components/version_info/version_info.h"
33 #import "ios/chrome/common/app_group/app_group_constants.h" 33 #import "ios/chrome/common/app_group/app_group_constants.h"
34 #import "ios/chrome/common/app_group/app_group_metrics.h" 34 #import "ios/chrome/common/app_group/app_group_metrics.h"
35 #import "ios/chrome/common/app_group/app_group_metrics_client.h" 35 #import "ios/chrome/common/app_group/app_group_metrics_client.h"
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 void TodayMetricsLogger::UniqueInconsistencyDetected( 298 void TodayMetricsLogger::UniqueInconsistencyDetected(
299 base::HistogramBase::Inconsistency problem) { 299 base::HistogramBase::Inconsistency problem) {
300 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowserUnique", problem, 300 UMA_HISTOGRAM_ENUMERATION("Histogram.InconsistenciesBrowserUnique", problem,
301 base::HistogramBase::NEVER_EXCEEDED_VALUE); 301 base::HistogramBase::NEVER_EXCEEDED_VALUE);
302 } 302 }
303 303
304 void TodayMetricsLogger::InconsistencyDetectedInLoggedCount(int amount) { 304 void TodayMetricsLogger::InconsistencyDetectedInLoggedCount(int amount) {
305 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentSnapshotBrowser", 305 UMA_HISTOGRAM_COUNTS("Histogram.InconsistentSnapshotBrowser",
306 std::abs(amount)); 306 std::abs(amount));
307 } 307 }
OLDNEW
« no previous file with comments | « ios/chrome/common/channel_info.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698