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

Side by Side Diff: components/navigation_interception/intercept_navigation_delegate.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "components/navigation_interception/intercept_navigation_delegate.h" 5 #include "components/navigation_interception/intercept_navigation_delegate.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 return Java_InterceptNavigationDelegate_shouldIgnoreNavigation( 140 return Java_InterceptNavigationDelegate_shouldIgnoreNavigation(
141 env, 141 env,
142 jdelegate.obj(), 142 jdelegate.obj(),
143 jobject_params.obj()); 143 jobject_params.obj());
144 } 144 }
145 145
146 void InterceptNavigationDelegate::UpdateLastUserGestureCarryoverTimestamp() { 146 void InterceptNavigationDelegate::UpdateLastUserGestureCarryoverTimestamp() {
147 last_user_gesture_carryover_timestamp_ = base::TimeTicks::Now(); 147 last_user_gesture_carryover_timestamp_ = base::TimeTicks::Now();
148 } 148 }
149 149
150 // Register native methods.
151
152 bool RegisterInterceptNavigationDelegate(JNIEnv* env) {
153 return RegisterNativesImpl(env);
154 }
155
156 } // namespace navigation_interception 150 } // namespace navigation_interception
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698