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

Unified Diff: content/public/android/java/src/org/chromium/content_public/browser/RenderFrameHost.java

Issue 2769993002: Restrict getInstalledRelatedApps() to non-incognito contexts. (Closed)
Patch Set: Created 3 years, 9 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: content/public/android/java/src/org/chromium/content_public/browser/RenderFrameHost.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/RenderFrameHost.java b/content/public/android/java/src/org/chromium/content_public/browser/RenderFrameHost.java
index 5748da23ca00930afded8cc84c8d2064d7b599e4..b569b82359defc4f2630e79c7f280dce9fbde462 100644
--- a/content/public/android/java/src/org/chromium/content_public/browser/RenderFrameHost.java
+++ b/content/public/android/java/src/org/chromium/content_public/browser/RenderFrameHost.java
@@ -15,4 +15,11 @@ public interface RenderFrameHost {
* @return The last committed URL of the frame.
*/
String getLastCommittedURL();
+
+ /**
+ * Check if we're in incognito.
+ *
+ * @return Whether we're in incognito.
+ */
+ boolean isIncognito();
boliu 2017/03/23 18:12:52 this isn't used outside of content, so doesn't nee
Timothy Loh 2017/03/24 03:11:31 Done, but please double-check I understood correct
}

Powered by Google App Engine
This is Rietveld 408576698