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

Side by Side Diff: net/android/network_change_notifier_android.cc

Issue 10798010: Uses gyp "rules" rather than "actions" templates for the JNI generator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Typo on content_jni.gypi Created 8 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 | Annotate | Revision Log
« no previous file with comments | « media/media.gyp ('k') | net/android/network_library.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "net/android/network_change_notifier_android.h" 5 #include "net/android/network_change_notifier_android.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "jni/network_change_notifier_jni.h" 9 #include "jni/NetworkChangeNotifier_jni.h"
10 10
11 namespace net { 11 namespace net {
12 namespace android { 12 namespace android {
13 13
14 NetworkChangeNotifier::NetworkChangeNotifier() { 14 NetworkChangeNotifier::NetworkChangeNotifier() {
15 JNIEnv* env = base::android::AttachCurrentThread(); 15 JNIEnv* env = base::android::AttachCurrentThread();
16 CreateJavaObject(env); 16 CreateJavaObject(env);
17 } 17 }
18 18
19 NetworkChangeNotifier::~NetworkChangeNotifier() { 19 NetworkChangeNotifier::~NetworkChangeNotifier() {
(...skipping 24 matching lines...) Expand all
44 net::NetworkChangeNotifier::CONNECTION_NONE; 44 net::NetworkChangeNotifier::CONNECTION_NONE;
45 } 45 }
46 46
47 // static 47 // static
48 bool NetworkChangeNotifier::Register(JNIEnv* env) { 48 bool NetworkChangeNotifier::Register(JNIEnv* env) {
49 return RegisterNativesImpl(env); 49 return RegisterNativesImpl(env);
50 } 50 }
51 51
52 } // namespace android 52 } // namespace android
53 } // namespace net 53 } // namespace net
OLDNEW
« no previous file with comments | « media/media.gyp ('k') | net/android/network_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698