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

Side by Side Diff: components/navigation_interception/navigation_params_android.cc

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "components/navigation_interception/navigation_params_android.h" 5 #include "components/navigation_interception/navigation_params_android.h"
6 6
7 #include "base/android/jni_string.h" 7 #include "base/android/jni_string.h"
8 #include "jni/NavigationParams_jni.h" 8 #include "jni/NavigationParams_jni.h"
9 9
10 using base::android::ConvertUTF8ToJavaString; 10 using base::android::ConvertUTF8ToJavaString;
(...skipping 16 matching lines...) Expand all
27 jstring_referrer.obj(), 27 jstring_referrer.obj(),
28 params.is_post(), 28 params.is_post(),
29 params.has_user_gesture(), 29 params.has_user_gesture(),
30 params.transition_type(), 30 params.transition_type(),
31 params.is_redirect(), 31 params.is_redirect(),
32 params.is_external_protocol(), 32 params.is_external_protocol(),
33 params.is_main_frame(), 33 params.is_main_frame(),
34 has_user_gesture_carryover); 34 has_user_gesture_carryover);
35 } 35 }
36 36
37 // Register native methods.
38
39 bool RegisterNavigationParams(JNIEnv* env) {
40 return RegisterNativesImpl(env);
41 }
42
43 } // namespace navigation_interception 37 } // namespace navigation_interception
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698