| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 #include "chrome/common/guid.h" | 174 #include "chrome/common/guid.h" |
| 175 #include "chrome/common/metrics_log_manager.h" | 175 #include "chrome/common/metrics_log_manager.h" |
| 176 #include "chrome/common/pref_names.h" | 176 #include "chrome/common/pref_names.h" |
| 177 #include "chrome/common/render_messages.h" | 177 #include "chrome/common/render_messages.h" |
| 178 #include "content/browser/load_notification_details.h" | 178 #include "content/browser/load_notification_details.h" |
| 179 #include "content/browser/plugin_service.h" | 179 #include "content/browser/plugin_service.h" |
| 180 #include "content/browser/renderer_host/render_process_host.h" | 180 #include "content/browser/renderer_host/render_process_host.h" |
| 181 #include "content/common/child_process_info.h" | 181 #include "content/common/child_process_info.h" |
| 182 #include "content/public/browser/notification_service.h" | 182 #include "content/public/browser/notification_service.h" |
| 183 #include "content/public/common/url_fetcher.h" | 183 #include "content/public/common/url_fetcher.h" |
| 184 #include "webkit/plugins/npapi/plugin_list.h" | |
| 185 #include "webkit/plugins/webplugininfo.h" | 184 #include "webkit/plugins/webplugininfo.h" |
| 186 | 185 |
| 187 // TODO(port): port browser_distribution.h. | 186 // TODO(port): port browser_distribution.h. |
| 188 #if !defined(OS_POSIX) | 187 #if !defined(OS_POSIX) |
| 189 #include "chrome/installer/util/browser_distribution.h" | 188 #include "chrome/installer/util/browser_distribution.h" |
| 190 #endif | 189 #endif |
| 191 | 190 |
| 192 #if defined(OS_CHROMEOS) | 191 #if defined(OS_CHROMEOS) |
| 193 #include "chrome/browser/chromeos/cros/cros_library.h" | 192 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 194 #include "chrome/browser/chromeos/external_metrics.h" | 193 #include "chrome/browser/chromeos/external_metrics.h" |
| (...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1542 if (local_state) { | 1541 if (local_state) { |
| 1543 const PrefService::Preference* uma_pref = | 1542 const PrefService::Preference* uma_pref = |
| 1544 local_state->FindPreference(prefs::kMetricsReportingEnabled); | 1543 local_state->FindPreference(prefs::kMetricsReportingEnabled); |
| 1545 if (uma_pref) { | 1544 if (uma_pref) { |
| 1546 bool success = uma_pref->GetValue()->GetAsBoolean(&result); | 1545 bool success = uma_pref->GetValue()->GetAsBoolean(&result); |
| 1547 DCHECK(success); | 1546 DCHECK(success); |
| 1548 } | 1547 } |
| 1549 } | 1548 } |
| 1550 return result; | 1549 return result; |
| 1551 } | 1550 } |
| OLD | NEW |