org.chromium.chrome.browser.firstrun.FirstRunSignInProcessor Java Examples
The following examples show how to use
org.chromium.chrome.browser.firstrun.FirstRunSignInProcessor.
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: SignInPreference.java From delion with Apache License 2.0 | 5 votes |
/** * Starts listening for updates to the sign-in and sync state. */ public void registerForUpdates() { SigninManager manager = SigninManager.get(getContext()); manager.addSignInAllowedObserver(this); ProfileDownloader.addObserver(this); FirstRunSignInProcessor.updateSigninManagerFirstRunCheckDone(getContext()); AndroidSyncSettings.registerObserver(getContext(), this); ProfileSyncService syncService = ProfileSyncService.get(); if (syncService != null) { syncService.addSyncStateChangedListener(this); } }
Example #2
Source File: ChromeBackupAgent.java From delion with Apache License 2.0 | 5 votes |
private boolean restoreAndroidPrefs(SharedPreferences sharedPrefs, String userName) { Set<String> prefNames = sharedPrefs.getAll().keySet(); SharedPreferences.Editor editor = sharedPrefs.edit(); // Throw away prefs we don't want to restore. Set<String> restoredPrefs = new HashSet<>(Arrays.asList(RESTORED_ANDROID_PREFS)); for (String pref : prefNames) { if (!restoredPrefs.contains(pref)) editor.remove(pref); } // Because FirstRunSignInProcessor.FIRST_RUN_FLOW_SIGNIN_COMPLETE is not restored Chrome // will sign in the user on first run to the account in FIRST_RUN_FLOW_SIGNIN_ACCOUNT_NAME // if any. If the rest of FRE has been completed this will happen silently. editor.putString(FirstRunSignInProcessor.FIRST_RUN_FLOW_SIGNIN_ACCOUNT_NAME, userName); boolean commitResult = editor.commit(); return commitResult; }
Example #3
Source File: SignInPreference.java From AndroidChromium with Apache License 2.0 | 5 votes |
/** * Starts listening for updates to the sign-in and sync state. */ public void registerForUpdates() { SigninManager manager = SigninManager.get(getContext()); manager.addSignInAllowedObserver(this); ProfileDownloader.addObserver(this); FirstRunSignInProcessor.updateSigninManagerFirstRunCheckDone(getContext()); AndroidSyncSettings.registerObserver(getContext(), this); ProfileSyncService syncService = ProfileSyncService.get(); if (syncService != null) { syncService.addSyncStateChangedListener(this); } }
Example #4
Source File: SignInPreference.java From 365browser with Apache License 2.0 | 5 votes |
/** * Starts listening for updates to the sign-in and sync state. */ public void registerForUpdates() { SigninManager manager = SigninManager.get(getContext()); manager.addSignInAllowedObserver(this); ProfileDownloader.addObserver(this); FirstRunSignInProcessor.updateSigninManagerFirstRunCheckDone(getContext()); AndroidSyncSettings.registerObserver(getContext(), this); ProfileSyncService syncService = ProfileSyncService.get(); if (syncService != null) { syncService.addSyncStateChangedListener(this); } }
Example #5
Source File: ChromeTabbedActivity.java From delion with Apache License 2.0 | 4 votes |
private void refreshSignIn() { if (mIsOnFirstRun) return; FirstRunSignInProcessor.start(this); }
Example #6
Source File: ChromeTabbedActivity.java From AndroidChromium with Apache License 2.0 | 4 votes |
private void refreshSignIn() { if (mIsOnFirstRun) return; FirstRunSignInProcessor.start(this); }
Example #7
Source File: ChromeTabbedActivity.java From 365browser with Apache License 2.0 | 4 votes |
private void refreshSignIn() { if (mIsOnFirstRun) return; FirstRunSignInProcessor.start(this); }