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 e07f3cf59a454a52fade0a51273b6a54914aad1b..e4ee5cfd1bdd817410af21bf1a610925954c622a 100644 |
--- a/components/web_view/web_view_impl.cc |
+++ b/components/web_view/web_view_impl.cc |
@@ -255,12 +255,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); |
} |
//////////////////////////////////////////////////////////////////////////////// |