Index: ios/web/public/test/test_browser_state.cc |
diff --git a/ios/web/public/test/test_browser_state.cc b/ios/web/public/test/test_browser_state.cc |
index d001bc3f90ddd3998ccb0da420cd8fc582efcde4..cdb050a2b12318b73be81ec1396a98cba0c4e8ce 100644 |
--- a/ios/web/public/test/test_browser_state.cc |
+++ b/ios/web/public/test/test_browser_state.cc |
@@ -15,7 +15,9 @@ namespace { |
class TestContextURLRequestContextGetter : public net::URLRequestContextGetter { |
public: |
TestContextURLRequestContextGetter() |
- : null_task_runner_(new base::NullTaskRunner) {} |
+ : null_task_runner_(new base::NullTaskRunner) { |
+ context_.set_net_log(&net_log_); |
+ } |
net::URLRequestContext* GetURLRequestContext() override { return &context_; } |
@@ -28,6 +30,7 @@ class TestContextURLRequestContextGetter : public net::URLRequestContextGetter { |
~TestContextURLRequestContextGetter() override {} |
net::TestURLRequestContext context_; |
+ net::NetLog net_log_; |
scoped_refptr<base::SingleThreadTaskRunner> null_task_runner_; |
}; |