| Index: net/android/java/src/org/chromium/net/NetworkInfo.java
|
| diff --git a/net/android/java/src/org/chromium/net/NetworkInfo.java b/net/android/java/src/org/chromium/net/NetworkInfo.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1bf01c35195035880cea37dbc0432c02a7374037
|
| --- /dev/null
|
| +++ b/net/android/java/src/org/chromium/net/NetworkInfo.java
|
| @@ -0,0 +1,22 @@
|
| +// Copyright 2014 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.
|
| +
|
| +package org.chromium.chrome.browser;
|
| +
|
| +import android.content.Context;
|
| +import android.telephony.TelephonyManager;
|
| +
|
| +import org.chromium.base.CalledByNative;
|
| +
|
| +/**
|
| + * Provides access to information about the network a device is connected to.
|
| + */
|
| +public class NetworkInfo {
|
| + @CalledByNative
|
| + private static String getNetworkOperator(Context context) {
|
| + TelephonyManager telephonyManager =
|
| + (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
|
| + return telephonyManager.getNetworkOperator();
|
| + }
|
| +}
|
|
|