OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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/metrics/histogram_synchronizer.h" | 172 #include "chrome/browser/metrics/histogram_synchronizer.h" |
173 #include "chrome/browser/metrics/metrics_log.h" | 173 #include "chrome/browser/metrics/metrics_log.h" |
174 #include "chrome/browser/prefs/pref_service.h" | 174 #include "chrome/browser/prefs/pref_service.h" |
175 #include "chrome/browser/profiles/profile.h" | 175 #include "chrome/browser/profiles/profile.h" |
176 #include "chrome/browser/search_engines/template_url_model.h" | 176 #include "chrome/browser/search_engines/template_url_model.h" |
177 #include "chrome/common/child_process_info.h" | |
178 #include "chrome/common/child_process_logging.h" | 177 #include "chrome/common/child_process_logging.h" |
179 #include "chrome/common/chrome_switches.h" | 178 #include "chrome/common/chrome_switches.h" |
180 #include "chrome/common/guid.h" | 179 #include "chrome/common/guid.h" |
181 #include "chrome/common/pref_names.h" | 180 #include "chrome/common/pref_names.h" |
182 #include "chrome/common/render_messages.h" | 181 #include "chrome/common/render_messages.h" |
183 #include "content/browser/renderer_host/render_process_host.h" | 182 #include "content/browser/renderer_host/render_process_host.h" |
| 183 #include "content/common/child_process_info.h" |
184 #include "content/common/notification_service.h" | 184 #include "content/common/notification_service.h" |
185 #include "libxml/xmlwriter.h" | 185 #include "libxml/xmlwriter.h" |
186 #include "webkit/plugins/npapi/plugin_list.h" | 186 #include "webkit/plugins/npapi/plugin_list.h" |
187 #include "webkit/plugins/npapi/webplugininfo.h" | 187 #include "webkit/plugins/npapi/webplugininfo.h" |
188 | 188 |
189 // TODO(port): port browser_distribution.h. | 189 // TODO(port): port browser_distribution.h. |
190 #if !defined(OS_POSIX) | 190 #if !defined(OS_POSIX) |
191 #include "chrome/installer/util/browser_distribution.h" | 191 #include "chrome/installer/util/browser_distribution.h" |
192 #endif | 192 #endif |
193 | 193 |
(...skipping 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1910 thread_id = base::PlatformThread::CurrentId(); | 1910 thread_id = base::PlatformThread::CurrentId(); |
1911 return base::PlatformThread::CurrentId() == thread_id; | 1911 return base::PlatformThread::CurrentId() == thread_id; |
1912 } | 1912 } |
1913 | 1913 |
1914 #if defined(OS_CHROMEOS) | 1914 #if defined(OS_CHROMEOS) |
1915 void MetricsService::StartExternalMetrics() { | 1915 void MetricsService::StartExternalMetrics() { |
1916 external_metrics_ = new chromeos::ExternalMetrics; | 1916 external_metrics_ = new chromeos::ExternalMetrics; |
1917 external_metrics_->Start(); | 1917 external_metrics_->Start(); |
1918 } | 1918 } |
1919 #endif | 1919 #endif |
OLD | NEW |