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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 10831060: Refactor the Android port to allow access to the chrome layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gyp fixes Created 8 years, 4 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: 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);
}

Powered by Google App Engine
This is Rietveld 408576698