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

Unified Diff: content/common/android/device_telephony_info.cc

Issue 254823005: Move android Telephony APIs to from content/ to net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NET_EXPORT the moved APIs. Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/android/device_telephony_info.h ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/android/device_telephony_info.cc
diff --git a/content/common/android/device_telephony_info.cc b/content/common/android/device_telephony_info.cc
deleted file mode 100644
index f861fe0a633b153ae8266fb6129692689dcbe806..0000000000000000000000000000000000000000
--- a/content/common/android/device_telephony_info.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/common/android/device_telephony_info.h"
-
-#include "base/android/jni_android.h"
-#include "base/android/jni_string.h"
-#include "base/logging.h"
-#include "jni/DeviceTelephonyInfo_jni.h"
-
-using base::android::AttachCurrentThread;
-using base::android::ConvertJavaStringToUTF8;
-using base::android::ScopedJavaLocalRef;
-
-namespace content {
-
-DeviceTelephonyInfo::DeviceTelephonyInfo() {
- JNIEnv* env = AttachCurrentThread();
- j_device_info_.Reset(Java_DeviceTelephonyInfo_create(env,
- base::android::GetApplicationContext()));
-}
-
-DeviceTelephonyInfo::~DeviceTelephonyInfo() {
-}
-
-std::string DeviceTelephonyInfo::GetNetworkCountryIso() {
- JNIEnv* env = AttachCurrentThread();
- ScopedJavaLocalRef<jstring> result =
- Java_DeviceTelephonyInfo_getNetworkCountryIso(env, j_device_info_.obj());
- return ConvertJavaStringToUTF8(result);
-}
-
-std::string DeviceTelephonyInfo::GetNetworkOperator() {
- JNIEnv* env = AttachCurrentThread();
- ScopedJavaLocalRef<jstring> result =
- Java_DeviceTelephonyInfo_getNetworkOperator(env, j_device_info_.obj());
- return ConvertJavaStringToUTF8(result);
-}
-
-// static
-bool DeviceTelephonyInfo::RegisterDeviceTelephonyInfo(JNIEnv* env) {
- return RegisterNativesImpl(env);
-}
-
-} // namespace content
« no previous file with comments | « content/common/android/device_telephony_info.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698