| 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
|
|
|