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

Unified Diff: trunk/src/chrome/browser/download/download_request_limiter_unittest.cc

Issue 23551005: Revert 219709 "Remove the Extensions URLRequestContext." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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: trunk/src/chrome/browser/download/download_request_limiter_unittest.cc
===================================================================
--- trunk/src/chrome/browser/download/download_request_limiter_unittest.cc (revision 219785)
+++ trunk/src/chrome/browser/download/download_request_limiter_unittest.cc (working copy)
@@ -14,7 +14,6 @@
#include "chrome/test/base/testing_profile.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/web_contents.h"
-#include "content/public/test/test_browser_thread_bundle.h"
#include "testing/gtest/include/gtest/gtest.h"
using content::WebContents;
@@ -38,8 +37,7 @@
&DownloadRequestLimiterTest::FakeCreate, base::Unretained(this));
DownloadRequestInfoBarDelegate::SetCallbackForTesting(
&fake_create_callback_);
- content_settings_ = new HostContentSettingsMap(
- Profile::FromBrowserContext(browser_context())->GetPrefs(), false);
+ content_settings_ = new HostContentSettingsMap(profile_.GetPrefs(), false);
DownloadRequestLimiter::SetContentSettingsForTesting(
content_settings_.get());
}
@@ -141,9 +139,7 @@
private:
DownloadRequestInfoBarDelegate::FakeCreateCallback fake_create_callback_;
- virtual content::BrowserContext* CreateBrowserContext() OVERRIDE {
- return new TestingProfile();
- }
+ TestingProfile profile_;
};
TEST_F(DownloadRequestLimiterTest,

Powered by Google App Engine
This is Rietveld 408576698