Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: chrome/browser/profiles/profile_impl.cc

Issue 615313006: Domain Reliability: Get correct reporting pref once, on startup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve conflict Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_remover_unittest.cc ('k') | chrome/browser/profiles/profile_impl_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698