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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java

Issue 2710323003: 🏠 Close the bottom sheet when opening link in incognito (Closed)
Patch Set: Properly make ContentSuggestionsActivity compile Created 3 years, 10 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/omnibox/LocationBarLayout.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
index bee3f48a4b24b71f4f1e22a9d119c450af3bf521..1aa46498fd356645fd5bfc7fa5208878379b1559 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
@@ -2160,7 +2160,7 @@ protected void loadUrl(String url, int transition) {
// If the bottom sheet exists, route the navigation through it instead of the tab.
if (mBottomSheet != null) {
- mBottomSheet.loadUrl(loadUrlParams);
+ mBottomSheet.loadUrl(loadUrlParams, /* incognito = */ false);
} else {
currentTab.loadUrl(loadUrlParams);
}

Powered by Google App Engine
This is Rietveld 408576698