| 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.chrome.browser.firstrun; | 5 package org.chromium.chrome.browser.firstrun; |
| 6 | 6 |
| 7 import android.accounts.Account; | 7 import android.accounts.Account; |
| 8 import android.app.Activity; | 8 import android.app.Activity; |
| 9 import android.content.Context; | 9 import android.content.Context; |
| 10 import android.content.Intent; | 10 import android.content.Intent; |
| 11 import android.os.Bundle; | 11 import android.os.Bundle; |
| 12 import android.text.TextUtils; | 12 import android.text.TextUtils; |
| 13 | 13 |
| 14 import org.chromium.base.ApiCompatibilityUtils; | 14 import org.chromium.base.ApiCompatibilityUtils; |
| 15 import org.chromium.base.CommandLine; | 15 import org.chromium.base.CommandLine; |
| 16 import org.chromium.base.FieldTrialList; | 16 import org.chromium.base.FieldTrialList; |
| 17 import org.chromium.base.VisibleForTesting; | 17 import org.chromium.base.VisibleForTesting; |
| 18 import org.chromium.chrome.browser.ChromeSwitches; | 18 import org.chromium.chrome.browser.ChromeSwitches; |
| 19 import org.chromium.chrome.browser.IntentHandler; | 19 import org.chromium.chrome.browser.IntentHandler; |
| 20 import org.chromium.chrome.browser.IntentHandler.ExternalAppId; | 20 import org.chromium.chrome.browser.IntentHandler.ExternalAppId; |
| 21 import org.chromium.chrome.browser.net.spdyproxy.DataReductionProxySettings; | 21 import org.chromium.chrome.browser.net.spdyproxy.DataReductionProxySettings; |
| 22 import org.chromium.chrome.browser.preferences.PrefServiceBridge; | 22 import org.chromium.chrome.browser.preferences.PrefServiceBridge; |
| 23 import org.chromium.chrome.browser.preferences.privacy.PrivacyPreferencesManager
; | 23 import org.chromium.chrome.browser.preferences.privacy.PrivacyPreferencesManager
; |
| 24 import org.chromium.chrome.browser.services.AndroidEduAndChildAccountHelper; | 24 import org.chromium.chrome.browser.services.AndroidEduAndChildAccountHelper; |
| 25 import org.chromium.chrome.browser.signin.SigninManager; | 25 import org.chromium.chrome.browser.signin.SigninManager; |
| 26 import org.chromium.chrome.browser.util.FeatureUtilities; | 26 import org.chromium.chrome.browser.util.FeatureUtilities; |
| 27 import org.chromium.sync.signin.AccountManagerHelper; | 27 import org.chromium.components.sync.signin.AccountManagerHelper; |
| 28 import org.chromium.sync.signin.ChromeSigninController; | 28 import org.chromium.components.sync.signin.ChromeSigninController; |
| 29 | 29 |
| 30 /** | 30 /** |
| 31 * A helper to determine what should be the sequence of First Run Experience scr
eens. | 31 * A helper to determine what should be the sequence of First Run Experience scr
eens. |
| 32 * Usage: | 32 * Usage: |
| 33 * new FirstRunFlowSequencer(activity, launcherProvidedProperties) { | 33 * new FirstRunFlowSequencer(activity, launcherProvidedProperties) { |
| 34 * override onFlowIsKnown | 34 * override onFlowIsKnown |
| 35 * }.start(); | 35 * }.start(); |
| 36 */ | 36 */ |
| 37 public abstract class FirstRunFlowSequencer { | 37 public abstract class FirstRunFlowSequencer { |
| 38 private final Activity mActivity; | 38 private final Activity mActivity; |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 * @param fromChromeIcon Whether Chrome is opened via the Chrome icon | 274 * @param fromChromeIcon Whether Chrome is opened via the Chrome icon |
| 275 */ | 275 */ |
| 276 public static Intent createGenericFirstRunIntent(Context context, boolean fr
omChromeIcon) { | 276 public static Intent createGenericFirstRunIntent(Context context, boolean fr
omChromeIcon) { |
| 277 Intent intent = new Intent(); | 277 Intent intent = new Intent(); |
| 278 intent.setClassName(context, FirstRunActivity.class.getName()); | 278 intent.setClassName(context, FirstRunActivity.class.getName()); |
| 279 intent.putExtra(FirstRunActivity.COMING_FROM_CHROME_ICON, fromChromeIcon
); | 279 intent.putExtra(FirstRunActivity.COMING_FROM_CHROME_ICON, fromChromeIcon
); |
| 280 intent.putExtra(FirstRunActivity.USE_FRE_FLOW_SEQUENCER, true); | 280 intent.putExtra(FirstRunActivity.USE_FRE_FLOW_SEQUENCER, true); |
| 281 return intent; | 281 return intent; |
| 282 } | 282 } |
| 283 } | 283 } |
| OLD | NEW |