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

Side by Side Diff: chrome/browser/io_thread.cc

Issue 2593243003: Add network quality change events to net log (Closed)
Patch Set: ps Created 3 years, 11 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/io_thread.h" 5 #include "chrome/browser/io_thread.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 variations::GetVariationParams(kNetworkQualityEstimatorFieldTrialName, 558 variations::GetVariationParams(kNetworkQualityEstimatorFieldTrialName,
559 &network_quality_estimator_params); 559 &network_quality_estimator_params);
560 560
561 std::unique_ptr<net::ExternalEstimateProvider> external_estimate_provider; 561 std::unique_ptr<net::ExternalEstimateProvider> external_estimate_provider;
562 #if BUILDFLAG(ANDROID_JAVA_UI) 562 #if BUILDFLAG(ANDROID_JAVA_UI)
563 external_estimate_provider.reset( 563 external_estimate_provider.reset(
564 new chrome::android::ExternalEstimateProviderAndroid()); 564 new chrome::android::ExternalEstimateProviderAndroid());
565 #endif 565 #endif
566 // Pass ownership. 566 // Pass ownership.
567 globals_->network_quality_estimator.reset(new net::NetworkQualityEstimator( 567 globals_->network_quality_estimator.reset(new net::NetworkQualityEstimator(
568 std::move(external_estimate_provider), network_quality_estimator_params)); 568 std::move(external_estimate_provider), network_quality_estimator_params,
569 net_log_));
569 570
570 UpdateDnsClientEnabled(); 571 UpdateDnsClientEnabled();
571 #if defined(OS_CHROMEOS) 572 #if defined(OS_CHROMEOS)
572 // Creates a CertVerifyProc that doesn't allow any profile-provided certs. 573 // Creates a CertVerifyProc that doesn't allow any profile-provided certs.
573 globals_->cert_verifier = base::MakeUnique<net::CachingCertVerifier>( 574 globals_->cert_verifier = base::MakeUnique<net::CachingCertVerifier>(
574 base::MakeUnique<net::MultiThreadedCertVerifier>( 575 base::MakeUnique<net::MultiThreadedCertVerifier>(
575 new chromeos::CertVerifyProcChromeOS())); 576 new chromeos::CertVerifyProcChromeOS()));
576 #else 577 #else
577 globals_->cert_verifier = net::CertVerifier::CreateDefault(); 578 globals_->cert_verifier = net::CertVerifier::CreateDefault();
578 #endif 579 #endif
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 1090
1090 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the 1091 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the
1091 // system URLRequestContext too. There's no reason this should be tied to a 1092 // system URLRequestContext too. There's no reason this should be tied to a
1092 // profile. 1093 // profile.
1093 return context; 1094 return context;
1094 } 1095 }
1095 1096
1096 metrics::UpdateUsagePrefCallbackType IOThread::GetMetricsDataUseForwarder() { 1097 metrics::UpdateUsagePrefCallbackType IOThread::GetMetricsDataUseForwarder() {
1097 return base::Bind(&UpdateMetricsUsagePrefsOnUIThread); 1098 return base::Bind(&UpdateMetricsUsagePrefsOnUIThread);
1098 } 1099 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698