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

Side by Side Diff: android_webview/native/aw_contents_lifecycle_notifier.cc

Issue 2202783002: android_webview: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jnireg1
Patch Set: android_webview: Remove unneeded RegisterNatives() calls 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "android_webview/native/aw_contents_lifecycle_notifier.h" 5 #include "android_webview/native/aw_contents_lifecycle_notifier.h"
6 6
7 #include "jni/AwContentsLifecycleNotifier_jni.h" 7 #include "jni/AwContentsLifecycleNotifier_jni.h"
8 8
9 using base::android::AttachCurrentThread; 9 using base::android::AttachCurrentThread;
10 10
11 namespace android_webview { 11 namespace android_webview {
12 12
13 bool RegisterAwContentsLifecycleNotifier(JNIEnv* env) {
14 return RegisterNativesImpl(env);
15 }
16
17 // static 13 // static
18 void AwContentsLifecycleNotifier::OnWebViewCreated() { 14 void AwContentsLifecycleNotifier::OnWebViewCreated() {
19 Java_AwContentsLifecycleNotifier_onWebViewCreated(AttachCurrentThread()); 15 Java_AwContentsLifecycleNotifier_onWebViewCreated(AttachCurrentThread());
20 } 16 }
21 17
22 // static 18 // static
23 void AwContentsLifecycleNotifier::OnWebViewDestroyed() { 19 void AwContentsLifecycleNotifier::OnWebViewDestroyed() {
24 Java_AwContentsLifecycleNotifier_onWebViewDestroyed(AttachCurrentThread()); 20 Java_AwContentsLifecycleNotifier_onWebViewDestroyed(AttachCurrentThread());
25 } 21 }
26 22
27 } // namespace android_webview 23 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents_lifecycle_notifier.h ('k') | android_webview/native/aw_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698