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

Unified Diff: chrome/browser/extensions/api/web_request/web_request_api_unittest.cc

Issue 2462983003: Move data use measurement to DataUseNetworkDelegate (Closed)
Patch Set: Rebased and fixed nits Created 4 years, 1 month 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/data_use_measurement/chrome_data_use_ascriber.cc ('k') | chrome/browser/io_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/web_request/web_request_api_unittest.cc
diff --git a/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc b/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc
index 4ba5d6fb084df811544635d5e64a8bff3fbe29ba..004116e4948245c5d4d6140ce148cde0ca21b46b 100644
--- a/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc
+++ b/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc
@@ -193,8 +193,7 @@ class ExtensionWebRequestTest : public testing::Test {
&enable_referrers_, nullptr, nullptr, nullptr, nullptr,
profile_.GetTestingPrefService());
network_delegate_.reset(
- new ChromeNetworkDelegate(event_router_.get(), &enable_referrers_,
- metrics::UpdateUsagePrefCallbackType()));
+ new ChromeNetworkDelegate(event_router_.get(), &enable_referrers_));
network_delegate_->set_profile(&profile_);
network_delegate_->set_cookie_settings(
CookieSettingsFactory::GetForProfile(&profile_).get());
@@ -1000,8 +999,7 @@ class ExtensionWebRequestHeaderModificationTest
&enable_referrers_, nullptr, nullptr, nullptr, nullptr,
profile_.GetTestingPrefService());
network_delegate_.reset(
- new ChromeNetworkDelegate(event_router_.get(), &enable_referrers_,
- metrics::UpdateUsagePrefCallbackType()));
+ new ChromeNetworkDelegate(event_router_.get(), &enable_referrers_));
network_delegate_->set_profile(&profile_);
network_delegate_->set_cookie_settings(
CookieSettingsFactory::GetForProfile(&profile_).get());
« no previous file with comments | « chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc ('k') | chrome/browser/io_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698