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

Unified Diff: content/browser/loader/resource_dispatcher_host_unittest.cc

Issue 2572453002: [PlzNavigate] Wire page visibility info to navigation requests (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_dispatcher_host_unittest.cc
diff --git a/content/browser/loader/resource_dispatcher_host_unittest.cc b/content/browser/loader/resource_dispatcher_host_unittest.cc
index b53228912f98e72c705dc5776c2054a6f15ca4cb..e70fd0dd1ee4980d902fdb9501abc9ed1b92a62e 100644
--- a/content/browser/loader/resource_dispatcher_host_unittest.cc
+++ b/content/browser/loader/resource_dispatcher_host_unittest.cc
@@ -1087,9 +1087,9 @@ class ResourceDispatcherHostTest : public testing::TestWithParam<TestConfig>,
CommonNavigationParams common_params;
common_params.url = url;
std::unique_ptr<NavigationRequestInfo> request_info(
- new NavigationRequestInfo(common_params, begin_params, url,
- url::Origin(url), true, false, false, -1,
- false, false));
+ new NavigationRequestInfo(
+ common_params, begin_params, url, url::Origin(url), true, false,
+ false, -1, false, false, blink::WebPageVisibilityStateVisible));
std::unique_ptr<NavigationURLLoader> test_loader =
NavigationURLLoader::Create(browser_context_.get(),
std::move(request_info), nullptr, nullptr,
@@ -2646,7 +2646,8 @@ TEST_P(ResourceDispatcherHostTest, CancelRequestsForContext) {
std::unique_ptr<NavigationRequestInfo> request_info(
new NavigationRequestInfo(common_params, begin_params, download_url,
url::Origin(download_url), true, false, false,
- -1, false, false));
+ -1, false, false,
+ blink::WebPageVisibilityStateVisible));
std::unique_ptr<NavigationURLLoader> loader = NavigationURLLoader::Create(
browser_context_.get(), std::move(request_info), nullptr, nullptr,
nullptr, &delegate);
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698