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

Unified Diff: components/web_contents_delegate_android/web_contents_delegate_android.cc

Issue 23835020: Android: cleanup jni_android to minimize external dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small fix for clang Created 7 years, 3 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
« no previous file with comments | « base/android/jni_android_unittest.cc ('k') | content/browser/android/web_contents_observer_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/web_contents_delegate_android/web_contents_delegate_android.cc
diff --git a/components/web_contents_delegate_android/web_contents_delegate_android.cc b/components/web_contents_delegate_android/web_contents_delegate_android.cc
index c908f6a61a9038e0d599c98dd4fbafb83664ed38..e5e7838db3e2f164ce82b7e326c9b63ee1a1ba29 100644
--- a/components/web_contents_delegate_android/web_contents_delegate_android.cc
+++ b/components/web_contents_delegate_android/web_contents_delegate_android.cc
@@ -27,7 +27,6 @@
using base::android::AttachCurrentThread;
using base::android::ConvertUTF8ToJavaString;
using base::android::ConvertUTF16ToJavaString;
-using base::android::HasClass;
using base::android::ScopedJavaLocalRef;
using content::ColorChooser;
using content::WebContents;
@@ -327,10 +326,6 @@ void WebContentsDelegateAndroid::DidProgrammaticallyScroll(
// Register native methods
bool RegisterWebContentsDelegateAndroid(JNIEnv* env) {
- if (!HasClass(env, kWebContentsDelegateAndroidClassPath)) {
- DLOG(ERROR) << "Unable to find class WebContentsDelegateAndroid!";
- return false;
- }
return RegisterNativesImpl(env);
}
« no previous file with comments | « base/android/jni_android_unittest.cc ('k') | content/browser/android/web_contents_observer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698