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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/NativePageHost.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/NativePageHost.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/NativePageHost.java b/chrome/android/java/src/org/chromium/chrome/browser/NativePageHost.java
index 43ebc0e942b4856c0e4e8a4b3b583d1c70cb1a2e..ffb479de54f18bfe6129b256e69f9409452c2245 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/NativePageHost.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/NativePageHost.java
@@ -16,11 +16,12 @@
* the current native page or load external content in a content area (i.e. a tab or web
* contents).
* @param urlParams The params describing the URL to be loaded.
+ * @param incognito Whether the URL should be loaded in incognito mode.
* @return {@link TabLoadStatus.FULL_PRERENDERED_PAGE_LOAD} or
* {@link TabLoadStatus.PARTIAL_PRERENDERED_PAGE_LOAD} if the page has been prerendered.
* {@link TabLoadStatus.DEFAULT_PAGE_LOAD} if it had not
*/
- int loadUrl(LoadUrlParams urlParams);
+ int loadUrl(LoadUrlParams urlParams, boolean incognito);
/**
* Determine if the browser is currently in an incognito context.

Powered by Google App Engine
This is Rietveld 408576698