Index: components/web_view/web_view_impl.cc |
diff --git a/components/web_view/web_view_impl.cc b/components/web_view/web_view_impl.cc |
index 43f01118cfb9fc0041611e86db258a533094cd28..2ae9cf58358031fe88e511a11f0ec548679c6fca 100644 |
--- a/components/web_view/web_view_impl.cc |
+++ b/components/web_view/web_view_impl.cc |
@@ -265,12 +265,11 @@ void WebViewImpl::OnNavigate(mojo::URLRequestPtr request) { |
} |
void WebViewImpl::OnDidNavigate() { |
- client_->BackForwardChanged(navigation_controller_.CanGoBack() |
- ? ButtonState::BUTTON_STATE_ENABLED |
- : ButtonState::BUTTON_STATE_DISABLED, |
- navigation_controller_.CanGoForward() |
- ? ButtonState::BUTTON_STATE_ENABLED |
- : ButtonState::BUTTON_STATE_DISABLED); |
+ client_->BackForwardChanged( |
+ navigation_controller_.CanGoBack() ? ButtonState::ENABLED |
+ : ButtonState::DISABLED, |
+ navigation_controller_.CanGoForward() ? ButtonState::ENABLED |
+ : ButtonState::DISABLED); |
} |
//////////////////////////////////////////////////////////////////////////////// |