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

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

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 "content/browser/android/background_sync_network_observer_android.h" 5 #include "content/browser/android/background_sync_network_observer_android.h"
6 6
7 #include "base/android/context_utils.h" 7 #include "base/android/context_utils.h"
8 #include "jni/BackgroundSyncNetworkObserver_jni.h" 8 #include "jni/BackgroundSyncNetworkObserver_jni.h"
9 9
10 using base::android::JavaParamRef;
11
10 namespace content { 12 namespace content {
11 13
12 // static 14 // static
13 bool BackgroundSyncNetworkObserverAndroid::Observer::RegisterNetworkObserver( 15 bool BackgroundSyncNetworkObserverAndroid::Observer::RegisterNetworkObserver(
14 JNIEnv* env) { 16 JNIEnv* env) {
15 return RegisterNativesImpl(env); 17 return RegisterNativesImpl(env);
16 } 18 }
17 19
18 // static 20 // static
19 scoped_refptr<BackgroundSyncNetworkObserverAndroid::Observer> 21 scoped_refptr<BackgroundSyncNetworkObserverAndroid::Observer>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 80
79 observer_ = Observer::Create( 81 observer_ = Observer::Create(
80 base::Bind(&BackgroundSyncNetworkObserverAndroid::OnNetworkChanged, 82 base::Bind(&BackgroundSyncNetworkObserverAndroid::OnNetworkChanged,
81 weak_ptr_factory_.GetWeakPtr())); 83 weak_ptr_factory_.GetWeakPtr()));
82 } 84 }
83 85
84 BackgroundSyncNetworkObserverAndroid::~BackgroundSyncNetworkObserverAndroid() { 86 BackgroundSyncNetworkObserverAndroid::~BackgroundSyncNetworkObserverAndroid() {
85 DCHECK_CURRENTLY_ON(BrowserThread::IO); 87 DCHECK_CURRENTLY_ON(BrowserThread::IO);
86 } 88 }
87 } // namespace content 89 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698