Index: components/autofill/content/renderer/password_autofill_agent.cc |
diff --git a/components/autofill/content/renderer/password_autofill_agent.cc b/components/autofill/content/renderer/password_autofill_agent.cc |
index 86ff3779dc76fb185f1e36c899ca5c95f9d6cf88..a4720aac19665b6e35defecf4fae38e7aa9e7432 100644 |
--- a/components/autofill/content/renderer/password_autofill_agent.cc |
+++ b/components/autofill/content/renderer/password_autofill_agent.cc |
@@ -17,7 +17,6 @@ |
#include "components/autofill/core/common/password_autofill_util.h" |
#include "components/autofill/core/common/password_form.h" |
#include "components/autofill/core/common/password_form_fill_data.h" |
-#include "content/public/common/page_transition_types.h" |
#include "content/public/renderer/document_state.h" |
#include "content/public/renderer/navigation_state.h" |
#include "content/public/renderer/render_view.h" |
@@ -33,6 +32,7 @@ |
#include "third_party/WebKit/public/web/WebSecurityOrigin.h" |
#include "third_party/WebKit/public/web/WebUserGestureIndicator.h" |
#include "third_party/WebKit/public/web/WebView.h" |
+#include "ui/base/page_transition_types.h" |
#include "ui/events/keycodes/keyboard_codes.h" |
#include "url/gurl.h" |
@@ -728,7 +728,7 @@ void PasswordAutofillAgent::DidStartProvisionalLoad( |
frame->provisionalDataSource()); |
content::NavigationState* navigation_state = |
document_state->navigation_state(); |
- if (content::PageTransitionIsWebTriggerable( |
+ if (ui::PageTransitionIsWebTriggerable( |
navigation_state->transition_type()) && |
!blink::WebUserGestureIndicator::isProcessingUserGesture()) { |
// If onsubmit has been called, try and save that form. |