Index: chrome/browser/ui/android/autofill/autofill_dialog_controller_android.cc |
diff --git a/chrome/browser/ui/android/autofill/autofill_dialog_controller_android.cc b/chrome/browser/ui/android/autofill/autofill_dialog_controller_android.cc |
index 09b4d9e476cc083f0ccb8ae486ab9be7557ecf5f..362e620d8df2eb1b31bac342a9ac58069213e3f7 100644 |
--- a/chrome/browser/ui/android/autofill/autofill_dialog_controller_android.cc |
+++ b/chrome/browser/ui/android/autofill/autofill_dialog_controller_android.cc |
@@ -192,8 +192,7 @@ void AutofillDialogControllerAndroid::Show() { |
JNIEnv* env = base::android::AttachCurrentThread(); |
dialog_shown_timestamp_ = base::Time::Now(); |
- content::NavigationEntry* entry = contents_->GetController().GetActiveEntry(); |
- const GURL& active_url = entry ? entry->GetURL() : contents_->GetURL(); |
+ const GURL& active_url = contents_->GetLastCommittedURL(); |
Charlie Reis
2013/11/12 01:09:29
nit: active_url -> current_url
jww
2013/11/12 22:32:50
Done.
|
invoked_from_same_origin_ = active_url.GetOrigin() == source_url_.GetOrigin(); |
// Determine what field types should be included in the dialog. |