OLD | NEW |
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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 #include "chrome/browser/chromeos/external_metrics.h" | 222 #include "chrome/browser/chromeos/external_metrics.h" |
223 #include "chromeos/system/statistics_provider.h" | 223 #include "chromeos/system/statistics_provider.h" |
224 #endif | 224 #endif |
225 | 225 |
226 #if defined(OS_WIN) | 226 #if defined(OS_WIN) |
227 #include <windows.h> // Needed for STATUS_* codes | 227 #include <windows.h> // Needed for STATUS_* codes |
228 #include "base/win/registry.h" | 228 #include "base/win/registry.h" |
229 #endif | 229 #endif |
230 | 230 |
231 #if !defined(OS_ANDROID) | 231 #if !defined(OS_ANDROID) |
232 #include "chrome/browser/service/service_process_control.h" | 232 #include "chrome/browser/service_process/service_process_control.h" |
233 #endif | 233 #endif |
234 | 234 |
235 using base::Time; | 235 using base::Time; |
236 using content::BrowserThread; | 236 using content::BrowserThread; |
237 using content::ChildProcessData; | 237 using content::ChildProcessData; |
238 using content::LoadNotificationDetails; | 238 using content::LoadNotificationDetails; |
239 using content::PluginService; | 239 using content::PluginService; |
240 | 240 |
241 namespace { | 241 namespace { |
242 | 242 |
(...skipping 1625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1868 if (local_state) { | 1868 if (local_state) { |
1869 const PrefService::Preference* uma_pref = | 1869 const PrefService::Preference* uma_pref = |
1870 local_state->FindPreference(prefs::kMetricsReportingEnabled); | 1870 local_state->FindPreference(prefs::kMetricsReportingEnabled); |
1871 if (uma_pref) { | 1871 if (uma_pref) { |
1872 bool success = uma_pref->GetValue()->GetAsBoolean(&result); | 1872 bool success = uma_pref->GetValue()->GetAsBoolean(&result); |
1873 DCHECK(success); | 1873 DCHECK(success); |
1874 } | 1874 } |
1875 } | 1875 } |
1876 return result; | 1876 return result; |
1877 } | 1877 } |
OLD | NEW |