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

Unified Diff: content/common/net/url_fetcher_impl_unittest.cc

Issue 10440119: Introduce a delegate to avoid hardcoding "chrome-extension" in net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pure merge to LKGR Created 8 years, 6 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: content/common/net/url_fetcher_impl_unittest.cc
diff --git a/content/common/net/url_fetcher_impl_unittest.cc b/content/common/net/url_fetcher_impl_unittest.cc
index d8bacd0cbdad3704c635326312893344c4bb75eb..788bc9b415a6ac84a716aafe15edf08b51e59404 100644
--- a/content/common/net/url_fetcher_impl_unittest.cc
+++ b/content/common/net/url_fetcher_impl_unittest.cc
@@ -38,13 +38,16 @@ const char kTestServerFilePrefix[] = "files/";
class ThrottlingTestURLRequestContext : public TestURLRequestContext {
public:
- ThrottlingTestURLRequestContext() : TestURLRequestContext(true) {
+ ThrottlingTestURLRequestContext()
+ : TestURLRequestContext(true),
+ throttler_manager_(&delegate_) {
set_throttler_manager(&throttler_manager_);
Init();
DCHECK(throttler_manager() != NULL);
}
private:
+ TestURLRequestThrottlerManagerDelegate delegate_;
net::URLRequestThrottlerManager throttler_manager_;
};

Powered by Google App Engine
This is Rietveld 408576698