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

Unified Diff: net/url_request/url_request_test_util.cc

Issue 10203002: Make URLRequestThrottlerManager a member of URLRequestContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review. Created 8 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
Index: net/url_request/url_request_test_util.cc
diff --git a/net/url_request/url_request_test_util.cc b/net/url_request/url_request_test_util.cc
index 5fc4f727d311e8dcf39bce445cae474b941d10a8..8b80fcfdcfad3509e199e0b2b8feb524df973632 100644
--- a/net/url_request/url_request_test_util.cc
+++ b/net/url_request/url_request_test_util.cc
@@ -15,6 +15,7 @@
#include "net/http/http_network_session.h"
#include "net/http/http_server_properties_impl.h"
#include "net/url_request/url_request_job_factory.h"
+#include "net/url_request/url_request_throttler_manager.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
@@ -156,6 +157,9 @@ void TestURLRequestContext::Init() {
set_accept_charset("iso-8859-1,*,utf-8");
if (!job_factory())
context_storage_.set_job_factory(new net::URLRequestJobFactory);
+ if (!throttler_manager())
eroman 2012/04/24 19:05:57 nit: i strongly recommend putting multi-line state
Jói 2012/04/27 13:20:26 Done, and I totally agree, that's my usual style.
+ context_storage_.set_throttler_manager(
+ new net::URLRequestThrottlerManager());
}

Powered by Google App Engine
This is Rietveld 408576698