org.chromium.chrome.browser.signin.AccountSigninView Java Examples

The following examples show how to use org.chromium.chrome.browser.signin.AccountSigninView. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AccountFirstRunFragment.java    From delion with Apache License 2.0 5 votes vote down vote up
@Override
public View onCreateView(
        LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    mView = (AccountSigninView) inflater.inflate(
            R.layout.account_signin_view, container, false);
    return mView;
}
 
Example #2
Source File: AccountFirstRunFragment.java    From AndroidChromium with Apache License 2.0 5 votes vote down vote up
@Override
public View onCreateView(
        LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    mView = (AccountSigninView) inflater.inflate(
            R.layout.account_signin_view, container, false);
    return mView;
}
 
Example #3
Source File: AccountFirstRunFragment.java    From 365browser with Apache License 2.0 5 votes vote down vote up
@Override
public View onCreateView(
        LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    mView = (AccountSigninView) inflater.inflate(
            R.layout.account_signin_view, container, false);
    return mView;
}
 
Example #4
Source File: AccountFirstRunFragment.java    From 365browser with Apache License 2.0 4 votes vote down vote up
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);

    mView.init(getPageDelegate().getProfileDataCache(),
            getProperties().getBoolean(IS_CHILD_ACCOUNT),
            getProperties().getString(FORCE_SIGNIN_ACCOUNT_TO), this,
            new AccountSigninView.Listener() {
                @Override
                public void onAccountSelectionCanceled() {
                    getPageDelegate().refuseSignIn();
                    advanceToNextPage();
                }

                @Override
                public void onNewAccount() {
                    getPageDelegate().openAccountAdder(AccountFirstRunFragment.this);
                }

                @Override
                public void onAccountSelected(
                        String accountName, boolean isDefaultAccount, boolean settingsClicked) {
                    getPageDelegate().acceptSignIn(accountName, isDefaultAccount);
                    if (settingsClicked) {
                        getPageDelegate().askToOpenSignInSettings();
                    }
                    advanceToNextPage();
                }

                @Override
                public void onFailedToSetForcedAccount(String forcedAccountName) {
                    // Somehow the forced account disappeared while we were in the FRE.
                    // The user would have to go through the FRE again.
                    getPageDelegate().abortFirstRunExperience();
                }
            });

    RecordUserAction.record("MobileFre.SignInShown");
    RecordUserAction.record("Signin_Signin_FromStartPage");
    SigninManager.logSigninStartAccessPoint(SigninAccessPoint.START_PAGE);
}