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 | 6 |
7 //------------------------------------------------------------------------------ | 7 //------------------------------------------------------------------------------ |
8 // Description of the life cycle of a instance of MetricsService. | 8 // Description of the life cycle of a instance of MetricsService. |
9 // | 9 // |
10 // OVERVIEW | 10 // OVERVIEW |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 //------------------------------------------------------------------------------ | 157 //------------------------------------------------------------------------------ |
158 | 158 |
159 #include "chrome/browser/metrics/metrics_service.h" | 159 #include "chrome/browser/metrics/metrics_service.h" |
160 | 160 |
161 #if defined(OS_WIN) | 161 #if defined(OS_WIN) |
162 #include <windows.h> | 162 #include <windows.h> |
163 #include <objbase.h> | 163 #include <objbase.h> |
164 #endif | 164 #endif |
165 | 165 |
166 #include "base/base64.h" | 166 #include "base/base64.h" |
| 167 #include "base/command_line.h" |
167 #include "base/histogram.h" | 168 #include "base/histogram.h" |
168 #include "base/md5.h" | 169 #include "base/md5.h" |
169 #include "base/thread.h" | 170 #include "base/thread.h" |
170 #include "base/values.h" | 171 #include "base/values.h" |
171 #include "chrome/browser/bookmarks/bookmark_model.h" | 172 #include "chrome/browser/bookmarks/bookmark_model.h" |
172 #include "chrome/browser/browser_list.h" | 173 #include "chrome/browser/browser_list.h" |
173 #include "chrome/browser/browser_process.h" | 174 #include "chrome/browser/browser_process.h" |
174 #include "chrome/browser/load_notification_details.h" | 175 #include "chrome/browser/load_notification_details.h" |
175 #include "chrome/browser/memory_details.h" | 176 #include "chrome/browser/memory_details.h" |
176 #include "chrome/browser/metrics/histogram_synchronizer.h" | 177 #include "chrome/browser/metrics/histogram_synchronizer.h" |
(...skipping 1773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1950 hardware_class = kUnknownHardwareClass; | 1951 hardware_class = kUnknownHardwareClass; |
1951 } | 1952 } |
1952 return hardware_class; | 1953 return hardware_class; |
1953 } | 1954 } |
1954 | 1955 |
1955 void MetricsService::StartExternalMetrics() { | 1956 void MetricsService::StartExternalMetrics() { |
1956 external_metrics_ = new chromeos::ExternalMetrics; | 1957 external_metrics_ = new chromeos::ExternalMetrics; |
1957 external_metrics_->Start(); | 1958 external_metrics_->Start(); |
1958 } | 1959 } |
1959 #endif | 1960 #endif |
OLD | NEW |