Index: chrome/android/java/src/org/chromium/chrome/browser/profiles/Profile.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/profiles/Profile.java b/chrome/android/java/src/org/chromium/chrome/browser/profiles/Profile.java |
index aeff4b7beb6b1a2f74f72830dad210edc4dd58cf..5b5352b49e0b2d283e7fb892b1e9825a77fc7e12 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/profiles/Profile.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/profiles/Profile.java |
@@ -21,6 +21,14 @@ public class Profile { |
return (Profile) nativeGetLastUsedProfile(); |
} |
+ public Profile getOffTheRecordProfile() { |
+ return (Profile) nativeGetOffTheRecordProfile(mNativeProfileAndroid); |
+ } |
+ |
+ public boolean hasOffTheRecordProfile() { |
+ return nativeHasOffTheRecordProfile(mNativeProfileAndroid); |
+ } |
+ |
@CalledByNative |
private static Profile create(long nativeProfileAndroid) { |
return new Profile(nativeProfileAndroid); |
@@ -37,4 +45,8 @@ public class Profile { |
} |
private static native Object nativeGetLastUsedProfile(); |
+ private static native Object nativeGetOffTheRecordProfile( |
Ted C
2014/09/10 17:08:10
these shouldn't be static anymore
Maria
2014/09/10 17:17:54
Done.
Maria
2014/09/10 17:17:54
Done.
|
+ long nativeProfileAndroid); |
Ted C
2014/09/10 17:08:10
+4 indent here and the one below.
Maria
2014/09/10 17:17:54
Done.
|
+ private static native boolean nativeHasOffTheRecordProfile( |
+ long nativeProfileAndroid); |
} |