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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/firstrun/AccountFirstRunFragment.java

Issue 1698043006: Created the dialog offering the user to merge their account data or keep it (Closed) Base URL: maybelle.lon.corp.google.com:/usr/local/google/code/clankium/src@sync_settings
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/firstrun/AccountFirstRunFragment.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/firstrun/AccountFirstRunFragment.java b/chrome/android/java/src/org/chromium/chrome/browser/firstrun/AccountFirstRunFragment.java
index be16f4c33833c1c12f7decd2ce070f4ef6d0f0f2..5557e05356b579e967ab36edc35905f0c8e08815 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/firstrun/AccountFirstRunFragment.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/firstrun/AccountFirstRunFragment.java
@@ -12,23 +12,24 @@ import android.view.View;
import android.view.ViewGroup;
import org.chromium.chrome.R;
+import org.chromium.chrome.browser.signin.AccountSigninView;
/**
* A {@link Fragment} meant to handle sync setup for the first run experience.
*/
-public class AccountFirstRunFragment extends FirstRunPage {
+public class AccountFirstRunFragment extends FirstRunPage implements AccountSigninView.Delegate {
// Per-page parameters:
public static final String FORCE_SIGNIN_ACCOUNT_TO = "ForceSigninAccountTo";
public static final String PRESELECT_BUT_ALLOW_TO_CHANGE = "PreselectButAllowToChange";
public static final String IS_CHILD_ACCOUNT = "IsChildAccount";
- private AccountFirstRunView mView;
+ private AccountSigninView mView;
@Override
public View onCreateView(
LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
- mView = (AccountFirstRunView) inflater.inflate(
- R.layout.fre_choose_account, container, false);
+ mView = (AccountSigninView) inflater.inflate(
+ R.layout.account_signin_view, container, false);
gogerald1 2016/02/26 01:02:04 Please RecordUserAction.record("Signin_Impression_
return mView;
}
@@ -36,7 +37,7 @@ public class AccountFirstRunFragment extends FirstRunPage {
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
- mView.setListener(new AccountFirstRunView.Listener() {
+ mView.setListener(new AccountSigninView.Listener() {
@Override
public void onAccountSelectionCanceled() {
getPageDelegate().refuseSignIn();
gogerald1 2016/02/26 01:02:04 Please RecordUserAction.record("Signin_Declined_Fr
@@ -70,8 +71,8 @@ public class AccountFirstRunFragment extends FirstRunPage {
// The user would have to go through the FRE again.
getPageDelegate().abortFirstRunExperience();
}
-
});
+ mView.setDelegate(this);
mView.init(getPageDelegate().getProfileDataCache());

Powered by Google App Engine
This is Rietveld 408576698