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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/metrics/UmaBridge.java

Issue 978653002: Upstream FirstRunActivity and friends. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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.metrics; 5 package org.chromium.chrome.browser.metrics;
6 6
7 import org.chromium.chrome.browser.preferences.bandwidth.BandwidthReductionPrefe rences; 7 import org.chromium.chrome.browser.preferences.bandwidth.BandwidthReductionPrefe rences;
8 import org.chromium.chrome.browser.preferences.bandwidth.DataReductionPromoScree n; 8 import org.chromium.chrome.browser.preferences.bandwidth.DataReductionPromoScree n;
9 9
10 /** 10 /**
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 * Record the DataReductionProxy.SettingsConversion histogram. 86 * Record the DataReductionProxy.SettingsConversion histogram.
87 * @param statusChange ON/OFF change at the data saver setting menu 87 * @param statusChange ON/OFF change at the data saver setting menu
88 */ 88 */
89 public static void dataReductionProxySettings(int statusChange) { 89 public static void dataReductionProxySettings(int statusChange) {
90 assert statusChange >= 0 90 assert statusChange >= 0
91 && statusChange < BandwidthReductionPreferences.DATA_REDUCTION_I NDEX_BOUNDARY; 91 && statusChange < BandwidthReductionPreferences.DATA_REDUCTION_I NDEX_BOUNDARY;
92 nativeRecordDataReductionProxySettings( 92 nativeRecordDataReductionProxySettings(
93 statusChange, BandwidthReductionPreferences.DATA_REDUCTION_INDEX _BOUNDARY); 93 statusChange, BandwidthReductionPreferences.DATA_REDUCTION_INDEX _BOUNDARY);
94 } 94 }
95 95
96 // First Run Experience (obsolete, temporarily kept to match numbers)
97 public static void freSignInAttempted() {
98 nativeRecordFreSignInAttempted();
99 }
100
101 public static void freSignInSuccessful() {
102 nativeRecordFreSignInSuccessful();
103 }
104
105 public static void freSkipSignIn() {
106 nativeRecordFreSkipSignIn();
107 }
108
109 // First Run Experience post M-37
110 public static void freSignInShown() {
111 nativeRecordFreSignInShown();
112 }
113
114 public static void freSignInAccepted(boolean showSettings, boolean useDefaul tAccount) {
115 nativeRecordFreSignInAccepted(showSettings, useDefaultAccount);
116 }
117
118 public static void freSignInDeclined() {
119 nativeRecordFreSignInDeclined();
120 }
121
96 private static native void nativeRecordMenuShow(); 122 private static native void nativeRecordMenuShow();
97 private static native void nativeRecordUsingMenu(boolean isByHwButton, boole an isDragging); 123 private static native void nativeRecordUsingMenu(boolean isByHwButton, boole an isDragging);
98 private static native void nativeRecordBeamInvalidAppState(); 124 private static native void nativeRecordBeamInvalidAppState();
99 private static native void nativeRecordBeamCallbackSuccess(); 125 private static native void nativeRecordBeamCallbackSuccess();
100 private static native void nativeRecordDataReductionProxyTurnedOn(); 126 private static native void nativeRecordDataReductionProxyTurnedOn();
101 private static native void nativeRecordDataReductionProxyTurnedOff(); 127 private static native void nativeRecordDataReductionProxyTurnedOff();
102 private static native void nativeRecordDataReductionProxyTurnedOnFromPromo() ; 128 private static native void nativeRecordDataReductionProxyTurnedOnFromPromo() ;
103 private static native void nativeRecordDataReductionProxyPromoAction(int act ion, int boundary); 129 private static native void nativeRecordDataReductionProxyPromoAction(int act ion, int boundary);
104 private static native void nativeRecordDataReductionProxyPromoDisplayed(); 130 private static native void nativeRecordDataReductionProxyPromoDisplayed();
105 private static native void nativeRecordDataReductionProxySettings(int status Change, 131 private static native void nativeRecordDataReductionProxySettings(int status Change,
106 int boundary); 132 int boundary);
133
134 // First Run Experience (obsolete, temporarily kept to match numbers)
135 private static native void nativeRecordFreSignInAttempted();
136 private static native void nativeRecordFreSignInSuccessful();
137 private static native void nativeRecordFreSkipSignIn();
138
139 // First Run Experience post M-37
140 private static native void nativeRecordFreSignInShown();
141 private static native void nativeRecordFreSignInAccepted(
142 boolean showSettings, boolean defaultAccount);
143 private static native void nativeRecordFreSignInDeclined();
107 } 144 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698