Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5745)

Unified Diff: chrome/browser/ui/android/autofill/autofill_dialog_controller_android.cc

Issue 66993003: Most references to GetActiveEntry removed from chrome/browser/ui. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updates from nasko comments Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698