Index: content/browser/android/content_view_core_impl.cc |
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc |
index 23705cf56935b655fad8138f8c829bfdb17aa10c..9b03d894821987f2057d23a94ef415467377369c 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -237,14 +237,6 @@ ScopedJavaLocalRef<jstring> ContentViewCoreImpl::GetTitle( |
return ConvertUTF16ToJavaString(env, web_contents()->GetTitle()); |
} |
-jdouble ContentViewCoreImpl::GetLoadProgress(JNIEnv* env, jobject obj) const { |
- // An empty page never loads anything and always has a progress of 0. |
- // We report 1 in that case so the UI does not assume the page is loading. |
- if (web_contents()->GetURL().is_empty() || !content_view_client_.get()) |
- return static_cast<jdouble>(1.0); |
- return static_cast<jdouble>(content_view_client_->GetLoadProgress()); |
-} |
- |
jboolean ContentViewCoreImpl::IsIncognito(JNIEnv* env, jobject obj) { |
return web_contents()->GetBrowserContext()->IsOffTheRecord(); |
} |
@@ -396,8 +388,6 @@ void ContentViewCoreImpl::SetClient(JNIEnv* env, jobject obj, jobject jclient) { |
scoped_ptr<ContentViewClient> client( |
ContentViewClient::CreateNativeContentViewClient(env, jclient)); |
- web_contents_->SetDelegate(client.get()); |
- |
content_view_client_.swap(client); |
} |