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

Unified Diff: components/navigation_interception/intercept_navigation_resource_throttle_unittest.cc

Issue 51953002: [Net] Add a priority parameter to URLRequest's constructor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error from rebase Created 7 years, 2 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: components/navigation_interception/intercept_navigation_resource_throttle_unittest.cc
diff --git a/components/navigation_interception/intercept_navigation_resource_throttle_unittest.cc b/components/navigation_interception/intercept_navigation_resource_throttle_unittest.cc
index 3ac238c839a61fc338d255125a011808a2935e18..5a05d727129751f9040db93d959a0493f0677e21 100644
--- a/components/navigation_interception/intercept_navigation_resource_throttle_unittest.cc
+++ b/components/navigation_interception/intercept_navigation_resource_throttle_unittest.cc
@@ -22,6 +22,7 @@
#include "content/public/common/page_transition_types.h"
#include "content/public/test/mock_resource_context.h"
#include "content/public/test/test_renderer_host.h"
+#include "net/base/request_priority.h"
#include "net/http/http_response_headers.h"
#include "net/http/http_response_info.h"
#include "net/url_request/url_request.h"
@@ -118,7 +119,11 @@ class TestIOThreadState {
RedirectMode redirect_mode,
MockInterceptCallbackReceiver* callback_receiver)
: resource_context_(&test_url_request_context_),
- request_(url, NULL, resource_context_.GetRequestContext()) {
+ request_(url,
+ net::DEFAULT_PRIORITY,
+ NULL,
+ resource_context_.GetRequestContext(),
+ NULL) {
mmenke 2013/10/30 15:27:11 This depends on the resource_context_ having a NUL
akalin 2013/10/30 21:44:37 removed arg.
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
if (render_process_id != MSG_ROUTING_NONE &&
render_view_id != MSG_ROUTING_NONE) {

Powered by Google App Engine
This is Rietveld 408576698