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

Side by Side Diff: android_webview/java/src/org/chromium/android_webview/AwMetricsServiceClient.java

Issue 2879703002: WebView: Add channel info for UMA (Closed)
Patch Set: rebase Created 3 years, 6 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 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698