OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 #include "chrome/common/notification_service.h" | 183 #include "chrome/common/notification_service.h" |
184 #include "chrome/common/pref_names.h" | 184 #include "chrome/common/pref_names.h" |
185 #include "chrome/common/pref_service.h" | 185 #include "chrome/common/pref_service.h" |
186 #include "chrome/common/render_messages.h" | 186 #include "chrome/common/render_messages.h" |
187 #include "webkit/glue/plugins/plugin_list.h" | 187 #include "webkit/glue/plugins/plugin_list.h" |
188 | 188 |
189 #if !defined(OS_WIN) | 189 #if !defined(OS_WIN) |
190 #include "base/rand_util.h" | 190 #include "base/rand_util.h" |
191 #endif | 191 #endif |
192 | 192 |
193 #if defined(OS_POSIX) | 193 // TODO(port): port browser_distribution.h. |
194 // TODO(port): Move these headers above as they are ported. | 194 #if !defined(OS_POSIX) |
195 #include "chrome/common/temp_scaffolding_stubs.h" | |
196 #else | |
197 #include "chrome/installer/util/browser_distribution.h" | 195 #include "chrome/installer/util/browser_distribution.h" |
198 #endif | 196 #endif |
199 | 197 |
200 #if defined(OS_CHROMEOS) | 198 #if defined(OS_CHROMEOS) |
201 #include "chrome/browser/chromeos/external_metrics.h" | 199 #include "chrome/browser/chromeos/external_metrics.h" |
202 #endif | 200 #endif |
203 | 201 |
204 using base::Time; | 202 using base::Time; |
205 using base::TimeDelta; | 203 using base::TimeDelta; |
206 | 204 |
(...skipping 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1925 thread_id = PlatformThread::CurrentId(); | 1923 thread_id = PlatformThread::CurrentId(); |
1926 return PlatformThread::CurrentId() == thread_id; | 1924 return PlatformThread::CurrentId() == thread_id; |
1927 } | 1925 } |
1928 | 1926 |
1929 #if defined(OS_CHROMEOS) | 1927 #if defined(OS_CHROMEOS) |
1930 void MetricsService::StartExternalMetrics(Profile* profile) { | 1928 void MetricsService::StartExternalMetrics(Profile* profile) { |
1931 external_metrics_ = new chromeos::ExternalMetrics; | 1929 external_metrics_ = new chromeos::ExternalMetrics; |
1932 external_metrics_->Start(profile); | 1930 external_metrics_->Start(profile); |
1933 } | 1931 } |
1934 #endif | 1932 #endif |
OLD | NEW |