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

Unified Diff: content/public/test/test_navigation_observer.cc

Issue 2913733002: Add a browser test for access control for file: scheme (Closed)
Patch Set: Address comments Created 3 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/public/test/test_navigation_observer.cc
diff --git a/content/public/test/test_navigation_observer.cc b/content/public/test/test_navigation_observer.cc
index 71660655d5ecc93eae6376bec6a90d23f66e3361..b18d4c6cf1ca922276b17f488a0760e8e2faefcd 100644
--- a/content/public/test/test_navigation_observer.cc
+++ b/content/public/test/test_navigation_observer.cc
@@ -56,7 +56,8 @@ class TestNavigationObserver::TestWebContentsObserver
return;
parent_->OnDidFinishNavigation(navigation_handle->IsErrorPage(),
- navigation_handle->GetURL());
+ navigation_handle->GetURL(),
+ navigation_handle->GetNetErrorCode());
}
TestNavigationObserver* parent_;
@@ -156,9 +157,11 @@ void TestNavigationObserver::OnDidStartNavigation() {
}
void TestNavigationObserver::OnDidFinishNavigation(bool is_error_page,
- const GURL& url) {
+ const GURL& url,
+ net::Error error_code) {
last_navigation_url_ = url;
last_navigation_succeeded_ = !is_error_page;
+ last_net_error_code_ = error_code;
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698