OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 10 // A MetricsService instance is typically created at application startup. It |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // | 154 // |
155 //------------------------------------------------------------------------------ | 155 //------------------------------------------------------------------------------ |
156 | 156 |
157 #include "chrome/browser/metrics/metrics_service.h" | 157 #include "chrome/browser/metrics/metrics_service.h" |
158 | 158 |
159 #include "base/base64.h" | 159 #include "base/base64.h" |
160 #include "base/command_line.h" | 160 #include "base/command_line.h" |
161 #include "base/md5.h" | 161 #include "base/md5.h" |
162 #include "base/metrics/histogram.h" | 162 #include "base/metrics/histogram.h" |
163 #include "base/string_number_conversions.h" | 163 #include "base/string_number_conversions.h" |
164 #include "base/thread.h" | 164 #include "base/threading/thread.h" |
165 #include "base/threading/platform_thread.h" | 165 #include "base/threading/platform_thread.h" |
166 #include "base/utf_string_conversions.h" | 166 #include "base/utf_string_conversions.h" |
167 #include "base/values.h" | 167 #include "base/values.h" |
168 #include "chrome/browser/bookmarks/bookmark_model.h" | 168 #include "chrome/browser/bookmarks/bookmark_model.h" |
169 #include "chrome/browser/browser_list.h" | 169 #include "chrome/browser/browser_list.h" |
170 #include "chrome/browser/browser_process.h" | 170 #include "chrome/browser/browser_process.h" |
171 #include "chrome/browser/load_notification_details.h" | 171 #include "chrome/browser/load_notification_details.h" |
172 #include "chrome/browser/memory_details.h" | 172 #include "chrome/browser/memory_details.h" |
173 #include "chrome/browser/metrics/histogram_synchronizer.h" | 173 #include "chrome/browser/metrics/histogram_synchronizer.h" |
174 #include "chrome/browser/metrics/metrics_log.h" | 174 #include "chrome/browser/metrics/metrics_log.h" |
(...skipping 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1908 thread_id = base::PlatformThread::CurrentId(); | 1908 thread_id = base::PlatformThread::CurrentId(); |
1909 return base::PlatformThread::CurrentId() == thread_id; | 1909 return base::PlatformThread::CurrentId() == thread_id; |
1910 } | 1910 } |
1911 | 1911 |
1912 #if defined(OS_CHROMEOS) | 1912 #if defined(OS_CHROMEOS) |
1913 void MetricsService::StartExternalMetrics() { | 1913 void MetricsService::StartExternalMetrics() { |
1914 external_metrics_ = new chromeos::ExternalMetrics; | 1914 external_metrics_ = new chromeos::ExternalMetrics; |
1915 external_metrics_->Start(); | 1915 external_metrics_->Start(); |
1916 } | 1916 } |
1917 #endif | 1917 #endif |
OLD | NEW |