| Index: ios/web/web_state/navigation_context_impl.mm
|
| diff --git a/ios/web/web_state/navigation_context_impl.mm b/ios/web/web_state/navigation_context_impl.mm
|
| index 3262e0bd2002337fa6b0f319170dac233228604c..64142cbef968f52ff5272ead360380f55bda1a53 100644
|
| --- a/ios/web/web_state/navigation_context_impl.mm
|
| +++ b/ios/web/web_state/navigation_context_impl.mm
|
| @@ -13,11 +13,13 @@ namespace web {
|
|
|
| // static
|
| std::unique_ptr<NavigationContextImpl>
|
| -NavigationContextImpl::CreateNavigationContext(WebState* web_state,
|
| - const GURL& url) {
|
| +NavigationContextImpl::CreateNavigationContext(
|
| + WebState* web_state,
|
| + const GURL& url,
|
| + ui::PageTransition page_transition) {
|
| std::unique_ptr<NavigationContextImpl> result(new NavigationContextImpl(
|
| - web_state, url, false /* is_same_document */, false /* is_error_page */,
|
| - nullptr /* response_headers */));
|
| + web_state, url, page_transition, false /* is_same_document */,
|
| + false /* is_error_page */, nullptr /* response_headers */));
|
| return result;
|
| }
|
|
|
| @@ -40,6 +42,10 @@ const GURL& NavigationContextImpl::GetUrl() const {
|
| return url_;
|
| }
|
|
|
| +ui::PageTransition NavigationContextImpl::GetPageTransition() const {
|
| + return page_transition_;
|
| +}
|
| +
|
| bool NavigationContextImpl::IsSameDocument() const {
|
| return is_same_document_;
|
| }
|
| @@ -76,11 +82,13 @@ void NavigationContextImpl::SetNavigationItemUniqueID(int unique_id) {
|
| NavigationContextImpl::NavigationContextImpl(
|
| WebState* web_state,
|
| const GURL& url,
|
| + ui::PageTransition page_transition,
|
| bool is_same_document,
|
| bool is_error_page,
|
| const scoped_refptr<net::HttpResponseHeaders>& response_headers)
|
| : web_state_(web_state),
|
| url_(url),
|
| + page_transition_(page_transition),
|
| is_same_document_(is_same_document),
|
| is_error_page_(is_error_page),
|
| response_headers_(response_headers) {}
|
|
|