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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java

Issue 2885983002: Fixes intent chooser being shown incorrectly when going from HTTPS to HTTP for (Closed)
Patch Set: Minor cleanup Created 3 years, 7 months 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/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java b/chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java
index 9610a5e9793400a8b25155ec931f389b21b35cbe..f600142c646b5e3374310ece5b2e9771c7a91387 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegateImpl.java
@@ -596,6 +596,11 @@ public class ExternalNavigationDelegateImpl implements ExternalNavigationDelegat
return false;
}
+ @Override
+ public String getPreviousUrl() {
+ return mTab.getWebContents().getLastCommittedUrl();
Maria 2017/05/17 00:29:18 You should do null checks on tab and web contents
troyhildebrandt 2017/05/17 20:19:10 Done.
+ }
+
/**
* Dispatches the intent through a proxy activity, so that startActivityForResult can be used
* and the intent recipient can verify the caller.

Powered by Google App Engine
This is Rietveld 408576698