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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/datausage/ExternalDataUseObserver.java

Issue 2294923002: Get GWS ID from field trial (Closed)
Patch Set: Created 4 years, 3 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.chrome.browser.datausage; 5 package org.chromium.chrome.browser.datausage;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.text.TextUtils; 8 import android.text.TextUtils;
9 9
10 import org.chromium.base.ApplicationState; 10 import org.chromium.base.ApplicationState;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 /** 104 /**
105 * @return the default control app package name. 105 * @return the default control app package name.
106 */ 106 */
107 protected String getDefaultControlAppPackageName() { 107 protected String getDefaultControlAppPackageName() {
108 return ""; 108 return "";
109 } 109 }
110 110
111 /** 111 /**
112 * @return the google variation id. 112 * @return the google variation id.
113 * TODO(rajendrant): This function is unused, and should be removed.
113 */ 114 */
114 @CalledByNative
115 protected int getGoogleVariationID() { 115 protected int getGoogleVariationID() {
116 return 0; 116 return 0;
117 } 117 }
118 118
119 /** 119 /**
120 * Initializes the control app manager with package name of the control app. 120 * Initializes the control app manager with package name of the control app.
121 * @param controlAppPackageName package name of the control app. If this is empty the default 121 * @param controlAppPackageName package name of the control app. If this is empty the default
122 * control app package name from {@link getDefaultControlAppPackageName} wil l be used. 122 * control app package name from {@link getDefaultControlAppPackageName} wil l be used.
123 */ 123 */
124 @CalledByNative 124 @CalledByNative
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 String[] appPackageName, String[] domainPathRegEx, String[] label); 209 String[] appPackageName, String[] domainPathRegEx, String[] label);
210 210
211 @NativeClassQualifiedName("ExternalDataUseObserverBridge") 211 @NativeClassQualifiedName("ExternalDataUseObserverBridge")
212 private native void nativeOnReportDataUseDone( 212 private native void nativeOnReportDataUseDone(
213 long nativeExternalDataUseObserver, boolean success); 213 long nativeExternalDataUseObserver, boolean success);
214 214
215 @NativeClassQualifiedName("ExternalDataUseObserverBridge") 215 @NativeClassQualifiedName("ExternalDataUseObserverBridge")
216 private native void nativeOnControlAppInstallStateChange( 216 private native void nativeOnControlAppInstallStateChange(
217 long nativeExternalDataUseObserver, boolean isControlAppInstalled); 217 long nativeExternalDataUseObserver, boolean isControlAppInstalled);
218 } 218 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698