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

Unified Diff: chrome/browser/profiles/profile_android.h

Issue 556083004: Add hooks to get incognito profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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/browser/profiles/profile_android.h
diff --git a/chrome/browser/profiles/profile_android.h b/chrome/browser/profiles/profile_android.h
index 0017b5ba0636165905ff24cb7ee19d17670d8241..8350afdc689feb1fb2e084513b26b29d3cc689ee 100644
--- a/chrome/browser/profiles/profile_android.h
+++ b/chrome/browser/profiles/profile_android.h
@@ -23,6 +23,24 @@ class ProfileAndroid : public base::SupportsUserData::Data {
static jobject GetLastUsedProfile(JNIEnv* env, jclass clazz);
+ // Return the original profile.
+ base::android::ScopedJavaLocalRef<jobject> GetOriginalProfile(
+ JNIEnv* env, jobject obj);
+
+ // Return the incognito profile.
+ //
+ // WARNING: This will create the OffTheRecord profile if it doesn't already
+ // exist. If this isn't what you want, you need to check
+ // HasOffTheRecordProfile() first.
+ base::android::ScopedJavaLocalRef<jobject> GetOffTheRecordProfile(
+ JNIEnv* env, jobject obj);
+
+ // Return whether an off the record profile exists.
+ jboolean HasOffTheRecordProfile(JNIEnv* env, jobject obj);
+
+ // Whether this profile is off the record.
+ jboolean IsOffTheRecord(JNIEnv* env, jobject obj);
+
explicit ProfileAndroid(Profile* profile);
virtual ~ProfileAndroid();
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/profiles/Profile.java ('k') | chrome/browser/profiles/profile_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698