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

Side by Side Diff: content/browser/android/content_view_core_impl.cc

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/android/content_view_core_impl.h" 5 #include "content/browser/android/content_view_core_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after
1650 return ScopedJavaLocalRef<jobject>(); 1650 return ScopedJavaLocalRef<jobject>();
1651 1651
1652 ContentViewCore* view = ContentViewCore::FromWebContents(web_contents); 1652 ContentViewCore* view = ContentViewCore::FromWebContents(web_contents);
1653 if (!view) 1653 if (!view)
1654 return ScopedJavaLocalRef<jobject>(); 1654 return ScopedJavaLocalRef<jobject>();
1655 1655
1656 return view->GetJavaObject(); 1656 return view->GetJavaObject();
1657 } 1657 }
1658 1658
1659 bool RegisterContentViewCore(JNIEnv* env) { 1659 bool RegisterContentViewCore(JNIEnv* env) {
1660 return RegisterNativesImpl(env) && JNI_DragEvent::RegisterNativesImpl(env); 1660 return RegisterNativesImpl(env);
1661 } 1661 }
1662 1662
1663 } // namespace content 1663 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698