| Index: trunk/src/content/browser/android/content_view_core_impl.cc
|
| ===================================================================
|
| --- trunk/src/content/browser/android/content_view_core_impl.cc (revision 195969)
|
| +++ trunk/src/content/browser/android/content_view_core_impl.cc (working copy)
|
| @@ -814,12 +814,7 @@
|
|
|
| ScopedJavaLocalRef<jstring> ContentViewCoreImpl::GetURL(
|
| JNIEnv* env, jobject) const {
|
| - // The current users of the Java API expect to use the active entry
|
| - // rather than the visible entry, which is exposed by WebContents::GetURL.
|
| - content::NavigationEntry* entry =
|
| - web_contents_->GetController().GetActiveEntry();
|
| - GURL url = entry ? entry->GetVirtualURL() : GURL::EmptyGURL();
|
| - return ConvertUTF8ToJavaString(env, url.spec());
|
| + return ConvertUTF8ToJavaString(env, GetWebContents()->GetURL().spec());
|
| }
|
|
|
| ScopedJavaLocalRef<jstring> ContentViewCoreImpl::GetTitle(
|
|
|