| 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 #include "chrome/browser/profiles/profile_impl.h" | 5 #include "chrome/browser/profiles/profile_impl.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1431 | 1431 |
| 1432 scoped_ptr<domain_reliability::DomainReliabilityMonitor> | 1432 scoped_ptr<domain_reliability::DomainReliabilityMonitor> |
| 1433 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { | 1433 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { |
| 1434 domain_reliability::DomainReliabilityService* service = | 1434 domain_reliability::DomainReliabilityService* service = |
| 1435 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1435 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
| 1436 GetForBrowserContext(this); | 1436 GetForBrowserContext(this); |
| 1437 if (!service) | 1437 if (!service) |
| 1438 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1438 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); |
| 1439 | 1439 |
| 1440 return service->CreateMonitor( | 1440 return service->CreateMonitor( |
| 1441 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), | 1441 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
| 1442 local_state, | |
| 1443 prefs::kMetricsReportingEnabled); | |
| 1444 } | 1442 } |
| OLD | NEW |