| OLD | NEW |
| 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 package org.chromium.android_webview; | 5 package org.chromium.android_webview; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 import android.content.pm.ApplicationInfo; | 8 import android.content.pm.ApplicationInfo; |
| 9 import android.content.pm.PackageManager; | 9 import android.content.pm.PackageManager; |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 @CalledByNative | 73 @CalledByNative |
| 74 public static void nativeInitialized() { | 74 public static void nativeInitialized() { |
| 75 ThreadUtils.assertOnUiThread(); | 75 ThreadUtils.assertOnUiThread(); |
| 76 sIsClientReady = true; | 76 sIsClientReady = true; |
| 77 if (sShouldEnable) { | 77 if (sShouldEnable) { |
| 78 nativeSetMetricsEnabled(true); | 78 nativeSetMetricsEnabled(true); |
| 79 } | 79 } |
| 80 } | 80 } |
| 81 | 81 |
| 82 @CalledByNative |
| 83 public static String getWebViewPackageName() { |
| 84 return AwBrowserProcess.getWebViewPackageName(); |
| 85 } |
| 86 |
| 82 public static native void nativeSetMetricsEnabled(boolean enabled); | 87 public static native void nativeSetMetricsEnabled(boolean enabled); |
| 83 } | 88 } |
| OLD | NEW |