| Index: content/browser/web_contents/web_contents_android.cc
|
| diff --git a/content/browser/web_contents/web_contents_android.cc b/content/browser/web_contents/web_contents_android.cc
|
| index 5e2b1284c7f186f55c9b27d8b0cffa4c0642622a..5a89df69f203be45e6a06a4d23745eb3be6a0eba 100644
|
| --- a/content/browser/web_contents/web_contents_android.cc
|
| +++ b/content/browser/web_contents/web_contents_android.cc
|
| @@ -170,6 +170,14 @@ ScopedJavaLocalRef<jstring> WebContentsAndroid::GetURL(JNIEnv* env,
|
| return ConvertUTF8ToJavaString(env, web_contents_->GetURL().spec());
|
| }
|
|
|
| +ScopedJavaLocalRef<jstring> WebContentsAndroid::GetLastCommittedURL(
|
| + JNIEnv* env,
|
| + jobject) const {
|
| + return ConvertUTF8ToJavaString(env,
|
| + web_contents_->GetLastCommittedURL().spec());
|
| +}
|
| +
|
| +
|
| jboolean WebContentsAndroid::IsIncognito(JNIEnv* env, jobject obj) {
|
| return web_contents_->GetBrowserContext()->IsOffTheRecord();
|
| }
|
| @@ -480,4 +488,11 @@ void WebContentsAndroid::AddMessageToDevToolsConsole(JNIEnv* env,
|
| ConvertJavaStringToUTF8(env, message)));
|
| }
|
|
|
| +jboolean WebContentsAndroid::HasAccessedInitialDocument(
|
| + JNIEnv* env,
|
| + jobject jobj) {
|
| + return static_cast<content::WebContentsImpl*>(web_contents_)->
|
| + HasAccessedInitialDocument();
|
| +}
|
| +
|
| } // namespace content
|
|
|