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

Unified Diff: chrome/browser/extensions/extension_protocols_unittest.cc

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: thakis comments Created 3 years, 11 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: chrome/browser/extensions/extension_protocols_unittest.cc
diff --git a/chrome/browser/extensions/extension_protocols_unittest.cc b/chrome/browser/extensions/extension_protocols_unittest.cc
index be400b8777c48e4e50aba8512f73d20a2f20e765..e3da5f8a4a3d0642b7ef4b413e386b2063fc8c56 100644
--- a/chrome/browser/extensions/extension_protocols_unittest.cc
+++ b/chrome/browser/extensions/extension_protocols_unittest.cc
@@ -17,6 +17,7 @@
#include "chrome/common/chrome_paths.h"
#include "content/public/browser/resource_request_info.h"
#include "content/public/common/browser_side_navigation_policy.h"
+#include "content/public/common/previews_state.h"
#include "content/public/test/mock_resource_context.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "extensions/browser/extension_protocols.h"
@@ -136,17 +137,14 @@ class ExtensionProtocolTest : public testing::Test {
void StartRequest(net::URLRequest* request,
ResourceType resource_type) {
content::ResourceRequestInfo::AllocateForTesting(
- request,
- resource_type,
- &resource_context_,
- -1, // render_process_id
- -1, // render_view_id
- -1, // render_frame_id
- resource_type == content::RESOURCE_TYPE_MAIN_FRAME, // is_main_frame
- false, // parent_is_main_frame
- true, // allow_download
- false, // is_async
- false); // is_using_lofi
+ request, resource_type, &resource_context_,
+ /*render_process_id=*/-1,
+ /*render_view_id=*/-1,
+ /*render_frame_id=*/-1,
+ /*is_main_frame=*/resource_type == content::RESOURCE_TYPE_MAIN_FRAME,
+ /*parent_is_main_frame=*/false,
+ /*allow_download=*/true,
+ /*is_async=*/false, content::PREVIEWS_OFF);
request->Start();
base::RunLoop().Run();
}

Powered by Google App Engine
This is Rietveld 408576698