| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chrome/browser/domain_reliability/service_factory.h" | 5 #include "chrome/browser/domain_reliability/service_factory.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
| 9 #include "build/build_config.h" |
| 9 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" | 10 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" |
| 10 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
| 11 #include "components/domain_reliability/service.h" | 12 #include "components/domain_reliability/service.h" |
| 12 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 13 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 13 #include "content/public/browser/browser_context.h" | 14 #include "content/public/browser/browser_context.h" |
| 14 | 15 |
| 15 #if defined(OS_CHROMEOS) | 16 #if defined(OS_CHROMEOS) |
| 16 #include "chrome/browser/chromeos/settings/cros_settings.h" | 17 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 17 #endif // defined(OS_CHROMEOS) | 18 #endif // defined(OS_CHROMEOS) |
| 18 | 19 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 return NULL; | 76 return NULL; |
| 76 // TODO(ttuttle): Move this check closer to where the data gets sent | 77 // TODO(ttuttle): Move this check closer to where the data gets sent |
| 77 // crbug.com/533486 | 78 // crbug.com/533486 |
| 78 if (!ChromeMetricsServiceAccessor::IsMetricsAndCrashReportingEnabled()) | 79 if (!ChromeMetricsServiceAccessor::IsMetricsAndCrashReportingEnabled()) |
| 79 return NULL; | 80 return NULL; |
| 80 | 81 |
| 81 return DomainReliabilityService::Create(kUploadReporterString); | 82 return DomainReliabilityService::Create(kUploadReporterString); |
| 82 } | 83 } |
| 83 | 84 |
| 84 } // namespace domain_reliability | 85 } // namespace domain_reliability |
| OLD | NEW |