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

Unified Diff: chrome/browser/net/chrome_network_delegate_unittest.cc

Issue 1818613002: Implement UMA log throttling for cellular connections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_network_delegate_unittest.cc
diff --git a/chrome/browser/net/chrome_network_delegate_unittest.cc b/chrome/browser/net/chrome_network_delegate_unittest.cc
index b6feec34a4ef3ebc72e4b536a11628e704cdb524..ab9988643efa9a49d6a2762e3cd13b3d7d3202c1 100644
--- a/chrome/browser/net/chrome_network_delegate_unittest.cc
+++ b/chrome/browser/net/chrome_network_delegate_unittest.cc
@@ -157,7 +157,8 @@ class ChromeNetworkDelegateTest : public testing::Test {
void Initialize() {
network_delegate_.reset(
- new ChromeNetworkDelegate(forwarder(), &enable_referrers_));
+ new ChromeNetworkDelegate(forwarder(), &enable_referrers_,
+ metrics::UpdateUsagePrefCallbackType()));
context_->set_client_socket_factory(&socket_factory_);
context_->set_network_delegate(network_delegate_.get());
context_->Init();
@@ -348,7 +349,8 @@ class ChromeNetworkDelegateSafeSearchTest : public testing::Test {
protected:
scoped_ptr<net::NetworkDelegate> CreateNetworkDelegate() {
scoped_ptr<ChromeNetworkDelegate> network_delegate(
- new ChromeNetworkDelegate(forwarder(), &enable_referrers_));
+ new ChromeNetworkDelegate(forwarder(), &enable_referrers_,
+ metrics::UpdateUsagePrefCallbackType()));
network_delegate->set_force_google_safe_search(&force_google_safe_search_);
network_delegate->set_force_youtube_safety_mode(
&force_youtube_safety_mode_);
@@ -446,7 +448,8 @@ class ChromeNetworkDelegatePrivacyModeTest : public testing::Test {
protected:
scoped_ptr<ChromeNetworkDelegate> CreateNetworkDelegate() {
scoped_ptr<ChromeNetworkDelegate> network_delegate(
- new ChromeNetworkDelegate(forwarder(), &enable_referrers_));
+ new ChromeNetworkDelegate(forwarder(), &enable_referrers_,
+ metrics::UpdateUsagePrefCallbackType()));
network_delegate->set_cookie_settings(cookie_settings_);
return network_delegate;
}
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698