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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/sync/ui/SyncCustomizationFragment.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/sync/ui/SyncCustomizationFragment.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/sync/ui/SyncCustomizationFragment.java b/chrome/android/java/src/org/chromium/chrome/browser/sync/ui/SyncCustomizationFragment.java
index c19c7c9aedee89a2ed0146077326294b9db64f8c..2afc507e8e39ad5bc44277921d14e7066edd859a 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/sync/ui/SyncCustomizationFragment.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/sync/ui/SyncCustomizationFragment.java
@@ -36,6 +36,7 @@ import org.chromium.chrome.browser.invalidation.InvalidationController;
import org.chromium.chrome.browser.preferences.ChromeSwitchPreference;
import org.chromium.chrome.browser.preferences.SyncedAccountPreference;
import org.chromium.chrome.browser.sync.ProfileSyncService;
+import org.chromium.chrome.browser.sync.SyncAccountSwitcher;
import org.chromium.sync.AndroidSyncSettings;
import org.chromium.sync.ModelType;
import org.chromium.sync.PassphraseType;
@@ -116,12 +117,13 @@ public class SyncCustomizationFragment extends PreferenceFragment
private Preference mSyncEncryption;
private Preference mManageSyncData;
private CheckBoxPreference[] mAllTypes;
+ private SyncedAccountPreference mSyncedAccountPreference;
private ProfileSyncService mProfileSyncService;
@Override
- public View onCreateView(LayoutInflater inflater, ViewGroup container,
- Bundle savedInstanceState) {
+ public View onCreateView(
+ LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
mProfileSyncService = ProfileSyncService.get();
assert mProfileSyncService != null;
mIsBackendInitialized = mProfileSyncService.isBackendInitialized();
@@ -178,6 +180,11 @@ public class SyncCustomizationFragment extends PreferenceFragment
}
});
+ mSyncedAccountPreference =
+ (SyncedAccountPreference) findPreference(PREFERENCE_SYNC_ACCOUNT_LIST);
+ mSyncedAccountPreference.setOnPreferenceChangeListener(
+ new SyncAccountSwitcher(getActivity(), mSyncedAccountPreference));
+
return view;
}

Powered by Google App Engine
This is Rietveld 408576698