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

Side by Side Diff: chrome/browser/metrics/metrics_service.cc

Issue 16561007: Use a direct include of utf_string_conversions.h in chrome/browser/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/metrics/metrics_log.cc ('k') | chrome/browser/mouseleave_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 //------------------------------------------------------------------------------ 5 //------------------------------------------------------------------------------
6 // Description of the life cycle of a instance of MetricsService. 6 // Description of the life cycle of a instance of MetricsService.
7 // 7 //
8 // OVERVIEW 8 // OVERVIEW
9 // 9 //
10 // A MetricsService instance is typically created at application startup. It is 10 // A MetricsService instance is typically created at application startup. It is
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 #include "base/command_line.h" 157 #include "base/command_line.h"
158 #include "base/guid.h" 158 #include "base/guid.h"
159 #include "base/md5.h" 159 #include "base/md5.h"
160 #include "base/metrics/histogram.h" 160 #include "base/metrics/histogram.h"
161 #include "base/metrics/sparse_histogram.h" 161 #include "base/metrics/sparse_histogram.h"
162 #include "base/metrics/statistics_recorder.h" 162 #include "base/metrics/statistics_recorder.h"
163 #include "base/prefs/pref_registry_simple.h" 163 #include "base/prefs/pref_registry_simple.h"
164 #include "base/prefs/pref_service.h" 164 #include "base/prefs/pref_service.h"
165 #include "base/rand_util.h" 165 #include "base/rand_util.h"
166 #include "base/strings/string_number_conversions.h" 166 #include "base/strings/string_number_conversions.h"
167 #include "base/strings/utf_string_conversions.h"
167 #include "base/threading/platform_thread.h" 168 #include "base/threading/platform_thread.h"
168 #include "base/threading/thread.h" 169 #include "base/threading/thread.h"
169 #include "base/threading/thread_restrictions.h" 170 #include "base/threading/thread_restrictions.h"
170 #include "base/tracked_objects.h" 171 #include "base/tracked_objects.h"
171 #include "base/utf_string_conversions.h"
172 #include "base/values.h" 172 #include "base/values.h"
173 #include "chrome/browser/browser_process.h" 173 #include "chrome/browser/browser_process.h"
174 #include "chrome/browser/extensions/extension_service.h" 174 #include "chrome/browser/extensions/extension_service.h"
175 #include "chrome/browser/extensions/process_map.h" 175 #include "chrome/browser/extensions/process_map.h"
176 #include "chrome/browser/io_thread.h" 176 #include "chrome/browser/io_thread.h"
177 #include "chrome/browser/memory_details.h" 177 #include "chrome/browser/memory_details.h"
178 #include "chrome/browser/metrics/metrics_log.h" 178 #include "chrome/browser/metrics/metrics_log.h"
179 #include "chrome/browser/metrics/metrics_log_serializer.h" 179 #include "chrome/browser/metrics/metrics_log_serializer.h"
180 #include "chrome/browser/metrics/metrics_reporting_scheduler.h" 180 #include "chrome/browser/metrics/metrics_reporting_scheduler.h"
181 #include "chrome/browser/metrics/time_ticks_experiment_win.h" 181 #include "chrome/browser/metrics/time_ticks_experiment_win.h"
(...skipping 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after
1811 if (local_state) { 1811 if (local_state) {
1812 const PrefService::Preference* uma_pref = 1812 const PrefService::Preference* uma_pref =
1813 local_state->FindPreference(prefs::kMetricsReportingEnabled); 1813 local_state->FindPreference(prefs::kMetricsReportingEnabled);
1814 if (uma_pref) { 1814 if (uma_pref) {
1815 bool success = uma_pref->GetValue()->GetAsBoolean(&result); 1815 bool success = uma_pref->GetValue()->GetAsBoolean(&result);
1816 DCHECK(success); 1816 DCHECK(success);
1817 } 1817 }
1818 } 1818 }
1819 return result; 1819 return result;
1820 } 1820 }
OLDNEW
« no previous file with comments | « chrome/browser/metrics/metrics_log.cc ('k') | chrome/browser/mouseleave_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698