Commit 5cc0fa8e authored by Alice Wang's avatar Alice Wang Committed by Chromium LUCI CQ

[Android][Modularization] Move account picker MVC to signin.ui target

This CL moves account picker MVC to signin.ui target

Bug: 1150324
Change-Id: I5bf79154509797ed3464180a599f1788a0818a8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2597303
Commit-Queue: Alice Wang <aliceywang@chromium.org>
Reviewed-by: default avatarBoris Sazonov <bsazonov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#840144}
parent 722128cc
...@@ -738,11 +738,6 @@ chrome_java_resources = [ ...@@ -738,11 +738,6 @@ chrome_java_resources = [
"java/res/layout/account_picker_bottom_sheet_header.xml", "java/res/layout/account_picker_bottom_sheet_header.xml",
"java/res/layout/account_picker_bottom_sheet_view.xml", "java/res/layout/account_picker_bottom_sheet_view.xml",
"java/res/layout/account_picker_dialog_body.xml", "java/res/layout/account_picker_dialog_body.xml",
"java/res/layout/account_picker_incognito_row.xml",
"java/res/layout/account_picker_new_account_row.xml",
"java/res/layout/account_picker_new_account_row_legacy.xml",
"java/res/layout/account_picker_row.xml",
"java/res/layout/account_picker_row_legacy.xml",
"java/res/layout/account_picker_state_auth_error.xml", "java/res/layout/account_picker_state_auth_error.xml",
"java/res/layout/account_picker_state_collapsed.xml", "java/res/layout/account_picker_state_collapsed.xml",
"java/res/layout/account_picker_state_expanded.xml", "java/res/layout/account_picker_state_expanded.xml",
......
...@@ -1258,11 +1258,7 @@ chrome_java_sources = [ ...@@ -1258,11 +1258,7 @@ chrome_java_sources = [
"java/src/org/chromium/chrome/browser/signin/account_picker/AccountPickerBottomSheetProperties.java", "java/src/org/chromium/chrome/browser/signin/account_picker/AccountPickerBottomSheetProperties.java",
"java/src/org/chromium/chrome/browser/signin/account_picker/AccountPickerBottomSheetView.java", "java/src/org/chromium/chrome/browser/signin/account_picker/AccountPickerBottomSheetView.java",
"java/src/org/chromium/chrome/browser/signin/account_picker/AccountPickerBottomSheetViewBinder.java", "java/src/org/chromium/chrome/browser/signin/account_picker/AccountPickerBottomSheetViewBinder.java",
"java/src/org/chromium/chrome/browser/signin/account_picker/AccountPickerCoordinator.java",
"java/src/org/chromium/chrome/browser/signin/account_picker/AccountPickerDelegateImpl.java", "java/src/org/chromium/chrome/browser/signin/account_picker/AccountPickerDelegateImpl.java",
"java/src/org/chromium/chrome/browser/signin/account_picker/AccountPickerMediator.java",
"java/src/org/chromium/chrome/browser/signin/account_picker/AccountPickerProperties.java",
"java/src/org/chromium/chrome/browser/signin/account_picker/ExistingAccountRowViewBinder.java",
"java/src/org/chromium/chrome/browser/site_settings/ChromeSiteSettingsClient.java", "java/src/org/chromium/chrome/browser/site_settings/ChromeSiteSettingsClient.java",
"java/src/org/chromium/chrome/browser/site_settings/ChromeSiteSettingsHelpClient.java", "java/src/org/chromium/chrome/browser/site_settings/ChromeSiteSettingsHelpClient.java",
"java/src/org/chromium/chrome/browser/site_settings/ChromeWebappSettingsClient.java", "java/src/org/chromium/chrome/browser/site_settings/ChromeWebappSettingsClient.java",
......
...@@ -211,7 +211,6 @@ chrome_junit_test_java_sources = [ ...@@ -211,7 +211,6 @@ chrome_junit_test_java_sources = [
"junit/src/org/chromium/chrome/browser/signin/SigninUtilsAccountPickerTest.java", "junit/src/org/chromium/chrome/browser/signin/SigninUtilsAccountPickerTest.java",
"junit/src/org/chromium/chrome/browser/signin/SigninUtilsStartActivityTest.java", "junit/src/org/chromium/chrome/browser/signin/SigninUtilsStartActivityTest.java",
"junit/src/org/chromium/chrome/browser/signin/account_picker/AccountPickerDelegateTest.java", "junit/src/org/chromium/chrome/browser/signin/account_picker/AccountPickerDelegateTest.java",
"junit/src/org/chromium/chrome/browser/signin/account_picker/AccountPickerMediatorTest.java",
"junit/src/org/chromium/chrome/browser/status_indicator/StatusIndicatorMediatorTest.java", "junit/src/org/chromium/chrome/browser/status_indicator/StatusIndicatorMediatorTest.java",
"junit/src/org/chromium/chrome/browser/suggestions/SuggestionsImageFetcherTest.java", "junit/src/org/chromium/chrome/browser/suggestions/SuggestionsImageFetcherTest.java",
"junit/src/org/chromium/chrome/browser/survey/ChromeSurveyControllerTest.java", "junit/src/org/chromium/chrome/browser/survey/ChromeSurveyControllerTest.java",
......
...@@ -17,7 +17,7 @@ import androidx.recyclerview.widget.LinearLayoutManager; ...@@ -17,7 +17,7 @@ import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import org.chromium.chrome.R; import org.chromium.chrome.R;
import org.chromium.chrome.browser.signin.account_picker.AccountPickerCoordinator; import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerCoordinator;
/** /**
* This class implements dialog-based account picker that is used by SigninFragmentBase. This * This class implements dialog-based account picker that is used by SigninFragmentBase. This
......
...@@ -33,7 +33,6 @@ import org.chromium.chrome.R; ...@@ -33,7 +33,6 @@ import org.chromium.chrome.R;
import org.chromium.chrome.browser.consent_auditor.ConsentAuditorFeature; import org.chromium.chrome.browser.consent_auditor.ConsentAuditorFeature;
import org.chromium.chrome.browser.preferences.Pref; import org.chromium.chrome.browser.preferences.Pref;
import org.chromium.chrome.browser.profiles.Profile; import org.chromium.chrome.browser.profiles.Profile;
import org.chromium.chrome.browser.signin.account_picker.AccountPickerCoordinator;
import org.chromium.chrome.browser.signin.services.DisplayableProfileData; import org.chromium.chrome.browser.signin.services.DisplayableProfileData;
import org.chromium.chrome.browser.signin.services.IdentityServicesProvider; import org.chromium.chrome.browser.signin.services.IdentityServicesProvider;
import org.chromium.chrome.browser.signin.services.ProfileDataCache; import org.chromium.chrome.browser.signin.services.ProfileDataCache;
...@@ -41,6 +40,7 @@ import org.chromium.chrome.browser.signin.ui.ConfirmSyncDataStateMachine; ...@@ -41,6 +40,7 @@ import org.chromium.chrome.browser.signin.ui.ConfirmSyncDataStateMachine;
import org.chromium.chrome.browser.signin.ui.ConfirmSyncDataStateMachineDelegate; import org.chromium.chrome.browser.signin.ui.ConfirmSyncDataStateMachineDelegate;
import org.chromium.chrome.browser.signin.ui.ConsentTextTracker; import org.chromium.chrome.browser.signin.ui.ConsentTextTracker;
import org.chromium.chrome.browser.signin.ui.SigninView; import org.chromium.chrome.browser.signin.ui.SigninView;
import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerCoordinator;
import org.chromium.chrome.browser.sync.SyncUserDataWiper; import org.chromium.chrome.browser.sync.SyncUserDataWiper;
import org.chromium.components.externalauth.UserRecoverableErrorHandler; import org.chromium.components.externalauth.UserRecoverableErrorHandler;
import org.chromium.components.signin.AccountManagerDelegateException; import org.chromium.components.signin.AccountManagerDelegateException;
......
...@@ -15,6 +15,7 @@ import org.chromium.chrome.browser.incognito.interstitial.IncognitoInterstitialC ...@@ -15,6 +15,7 @@ import org.chromium.chrome.browser.incognito.interstitial.IncognitoInterstitialC
import org.chromium.chrome.browser.incognito.interstitial.IncognitoInterstitialDelegate; import org.chromium.chrome.browser.incognito.interstitial.IncognitoInterstitialDelegate;
import org.chromium.chrome.browser.signin.services.SigninMetricsUtils; import org.chromium.chrome.browser.signin.services.SigninMetricsUtils;
import org.chromium.chrome.browser.signin.services.SigninPreferencesManager; import org.chromium.chrome.browser.signin.services.SigninPreferencesManager;
import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerCoordinator;
import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerDelegate; import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerDelegate;
import org.chromium.chrome.browser.tabmodel.TabCreator; import org.chromium.chrome.browser.tabmodel.TabCreator;
import org.chromium.chrome.browser.tabmodel.TabModel; import org.chromium.chrome.browser.tabmodel.TabModel;
......
...@@ -16,6 +16,7 @@ import org.chromium.chrome.R; ...@@ -16,6 +16,7 @@ import org.chromium.chrome.R;
import org.chromium.chrome.browser.signin.account_picker.AccountPickerBottomSheetProperties.ViewState; import org.chromium.chrome.browser.signin.account_picker.AccountPickerBottomSheetProperties.ViewState;
import org.chromium.chrome.browser.signin.services.ProfileDataCache; import org.chromium.chrome.browser.signin.services.ProfileDataCache;
import org.chromium.chrome.browser.signin.services.SigninMetricsUtils; import org.chromium.chrome.browser.signin.services.SigninMetricsUtils;
import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerCoordinator;
import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerDelegate; import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerDelegate;
import org.chromium.components.signin.AccountManagerFacade; import org.chromium.components.signin.AccountManagerFacade;
import org.chromium.components.signin.AccountManagerFacadeProvider; import org.chromium.components.signin.AccountManagerFacadeProvider;
......
...@@ -22,6 +22,7 @@ import org.chromium.chrome.R; ...@@ -22,6 +22,7 @@ import org.chromium.chrome.R;
import org.chromium.chrome.browser.signin.account_picker.AccountPickerBottomSheetProperties.ViewState; import org.chromium.chrome.browser.signin.account_picker.AccountPickerBottomSheetProperties.ViewState;
import org.chromium.chrome.browser.signin.services.DisplayableProfileData; import org.chromium.chrome.browser.signin.services.DisplayableProfileData;
import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerFeatureUtils; import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerFeatureUtils;
import org.chromium.chrome.browser.signin.ui.account_picker.ExistingAccountRowViewBinder;
import org.chromium.components.browser_ui.bottomsheet.BottomSheetContent; import org.chromium.components.browser_ui.bottomsheet.BottomSheetContent;
import org.chromium.ui.widget.ButtonCompat; import org.chromium.ui.widget.ButtonCompat;
......
...@@ -5,7 +5,7 @@ package org.chromium.chrome.browser.signin; ...@@ -5,7 +5,7 @@ package org.chromium.chrome.browser.signin;
import androidx.fragment.app.Fragment; import androidx.fragment.app.Fragment;
import org.chromium.chrome.browser.signin.account_picker.AccountPickerCoordinator; import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerCoordinator;
/** /**
* This class is used to test {@link AccountPickerDialogFragment}. * This class is used to test {@link AccountPickerDialogFragment}.
......
...@@ -16,12 +16,16 @@ android_library("java") { ...@@ -16,12 +16,16 @@ android_library("java") {
"//components/browser_ui/widget/android:java", "//components/browser_ui/widget/android:java",
"//components/embedder_support/android:util_java", "//components/embedder_support/android:util_java",
"//components/signin/core/browser:signin_enums_java", "//components/signin/core/browser:signin_enums_java",
"//components/signin/core/browser/android:java",
"//components/signin/public/android:java", "//components/signin/public/android:java",
"//third_party/android_deps:androidx_annotation_annotation_java", "//third_party/android_deps:androidx_annotation_annotation_java",
"//third_party/android_deps:androidx_appcompat_appcompat_java", "//third_party/android_deps:androidx_appcompat_appcompat_java",
"//third_party/android_deps:androidx_appcompat_appcompat_resources_java", "//third_party/android_deps:androidx_appcompat_appcompat_resources_java",
"//third_party/android_deps:androidx_core_core_java",
"//third_party/android_deps:androidx_fragment_fragment_java", "//third_party/android_deps:androidx_fragment_fragment_java",
"//third_party/android_deps:androidx_recyclerview_recyclerview_java",
"//ui/android:ui_no_recycler_view_java", "//ui/android:ui_no_recycler_view_java",
"//ui/android:ui_recycler_view_java",
"//ui/android:ui_utils_java", "//ui/android:ui_utils_java",
] ]
sources = [ sources = [
...@@ -36,8 +40,12 @@ android_library("java") { ...@@ -36,8 +40,12 @@ android_library("java") {
"java/src/org/chromium/chrome/browser/signin/ui/SigninActivityLauncher.java", "java/src/org/chromium/chrome/browser/signin/ui/SigninActivityLauncher.java",
"java/src/org/chromium/chrome/browser/signin/ui/SigninScrollView.java", "java/src/org/chromium/chrome/browser/signin/ui/SigninScrollView.java",
"java/src/org/chromium/chrome/browser/signin/ui/SigninView.java", "java/src/org/chromium/chrome/browser/signin/ui/SigninView.java",
"java/src/org/chromium/chrome/browser/signin/ui/account_picker/AccountPickerCoordinator.java",
"java/src/org/chromium/chrome/browser/signin/ui/account_picker/AccountPickerDelegate.java", "java/src/org/chromium/chrome/browser/signin/ui/account_picker/AccountPickerDelegate.java",
"java/src/org/chromium/chrome/browser/signin/ui/account_picker/AccountPickerFeatureUtils.java", "java/src/org/chromium/chrome/browser/signin/ui/account_picker/AccountPickerFeatureUtils.java",
"java/src/org/chromium/chrome/browser/signin/ui/account_picker/AccountPickerMediator.java",
"java/src/org/chromium/chrome/browser/signin/ui/account_picker/AccountPickerProperties.java",
"java/src/org/chromium/chrome/browser/signin/ui/account_picker/ExistingAccountRowViewBinder.java",
"java/src/org/chromium/chrome/browser/signin/ui/account_picker/OnClickListenerViewBinder.java", "java/src/org/chromium/chrome/browser/signin/ui/account_picker/OnClickListenerViewBinder.java",
] ]
resources_package = "org.chromium.chrome.browser.signin.ui" resources_package = "org.chromium.chrome.browser.signin.ui"
...@@ -45,6 +53,11 @@ android_library("java") { ...@@ -45,6 +53,11 @@ android_library("java") {
android_resources("java_resources") { android_resources("java_resources") {
sources = [ sources = [
"java/res/layout/account_picker_incognito_row.xml",
"java/res/layout/account_picker_new_account_row.xml",
"java/res/layout/account_picker_new_account_row_legacy.xml",
"java/res/layout/account_picker_row.xml",
"java/res/layout/account_picker_row_legacy.xml",
"java/res/layout/confirm_import_sync_data.xml", "java/res/layout/confirm_import_sync_data.xml",
"java/res/layout/personalized_signin_promo_view_body.xml", "java/res/layout/personalized_signin_promo_view_body.xml",
"java/res/layout/personalized_signin_promo_view_bookmarks.xml", "java/res/layout/personalized_signin_promo_view_bookmarks.xml",
...@@ -57,6 +70,7 @@ android_resources("java_resources") { ...@@ -57,6 +70,7 @@ android_resources("java_resources") {
"java/res/layout/signout_wipe_storage_dialog.xml", "java/res/layout/signout_wipe_storage_dialog.xml",
] ]
deps = [ deps = [
"//chrome/browser/signin/services/android:java_resources",
"//chrome/browser/ui/android/strings:ui_strings_grd", "//chrome/browser/ui/android/strings:ui_strings_grd",
"//components/browser_ui/strings/android:browser_ui_strings_grd", "//components/browser_ui/strings/android:browser_ui_strings_grd",
"//components/browser_ui/styles/android:java_resources", "//components/browser_ui/styles/android:java_resources",
...@@ -73,6 +87,7 @@ android_library("junit") { ...@@ -73,6 +87,7 @@ android_library("junit") {
"junit/src/org/chromium/chrome/browser/signin/ui/ConfirmSyncDataStateMachineDelegateTest.java", "junit/src/org/chromium/chrome/browser/signin/ui/ConfirmSyncDataStateMachineDelegateTest.java",
"junit/src/org/chromium/chrome/browser/signin/ui/ConfirmSyncDataStateMachineTest.java", "junit/src/org/chromium/chrome/browser/signin/ui/ConfirmSyncDataStateMachineTest.java",
"junit/src/org/chromium/chrome/browser/signin/ui/SignOutDialogFragmentTest.java", "junit/src/org/chromium/chrome/browser/signin/ui/SignOutDialogFragmentTest.java",
"junit/src/org/chromium/chrome/browser/signin/ui/account_picker/AccountPickerMediatorTest.java",
] ]
deps = [ deps = [
":java", ":java",
...@@ -81,12 +96,17 @@ android_library("junit") { ...@@ -81,12 +96,17 @@ android_library("junit") {
"//base:base_junit_test_support", "//base:base_junit_test_support",
"//chrome/browser/profiles/android:java", "//chrome/browser/profiles/android:java",
"//chrome/browser/signin/services/android:java", "//chrome/browser/signin/services/android:java",
"//chrome/test/android:chrome_java_test_support",
"//components/signin/core/browser:signin_enums_java", "//components/signin/core/browser:signin_enums_java",
"//components/signin/core/browser/android:java",
"//components/signin/core/browser/android:signin_java_test_support",
"//components/signin/public/android:java",
"//third_party/android_deps:androidx_appcompat_appcompat_java", "//third_party/android_deps:androidx_appcompat_appcompat_java",
"//third_party/android_deps:androidx_fragment_fragment_java", "//third_party/android_deps:androidx_fragment_fragment_java",
"//third_party/android_deps:robolectric_all_java", "//third_party/android_deps:robolectric_all_java",
"//third_party/junit", "//third_party/junit",
"//third_party/mockito:mockito_java", "//third_party/mockito:mockito_java",
"//ui/android:ui_no_recycler_view_java",
] ]
} }
......
...@@ -2,18 +2,17 @@ ...@@ -2,18 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
package org.chromium.chrome.browser.signin.account_picker; package org.chromium.chrome.browser.signin.ui.account_picker;
import androidx.annotation.MainThread; import androidx.annotation.MainThread;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.flags.ChromeFeatureList; import org.chromium.chrome.browser.flags.ChromeFeatureList;
import org.chromium.chrome.browser.signin.account_picker.AccountPickerProperties.AddAccountRowProperties; import org.chromium.chrome.browser.signin.ui.R;
import org.chromium.chrome.browser.signin.account_picker.AccountPickerProperties.IncognitoAccountRowProperties; import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerProperties.AddAccountRowProperties;
import org.chromium.chrome.browser.signin.account_picker.AccountPickerProperties.ItemType; import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerProperties.IncognitoAccountRowProperties;
import org.chromium.chrome.browser.signin.ui.account_picker.OnClickListenerViewBinder; import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerProperties.ItemType;
import org.chromium.ui.modelutil.LayoutViewBuilder; import org.chromium.ui.modelutil.LayoutViewBuilder;
import org.chromium.ui.modelutil.MVCListAdapter; import org.chromium.ui.modelutil.MVCListAdapter;
import org.chromium.ui.modelutil.SimpleRecyclerViewAdapter; import org.chromium.ui.modelutil.SimpleRecyclerViewAdapter;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
package org.chromium.chrome.browser.signin.account_picker; package org.chromium.chrome.browser.signin.ui.account_picker;
import android.content.Context; import android.content.Context;
import android.text.TextUtils; import android.text.TextUtils;
...@@ -11,13 +11,13 @@ import androidx.annotation.MainThread; ...@@ -11,13 +11,13 @@ import androidx.annotation.MainThread;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import org.chromium.base.Callback; import org.chromium.base.Callback;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.signin.account_picker.AccountPickerProperties.AddAccountRowProperties;
import org.chromium.chrome.browser.signin.account_picker.AccountPickerProperties.ExistingAccountRowProperties;
import org.chromium.chrome.browser.signin.account_picker.AccountPickerProperties.IncognitoAccountRowProperties;
import org.chromium.chrome.browser.signin.account_picker.AccountPickerProperties.ItemType;
import org.chromium.chrome.browser.signin.services.DisplayableProfileData; import org.chromium.chrome.browser.signin.services.DisplayableProfileData;
import org.chromium.chrome.browser.signin.services.ProfileDataCache; import org.chromium.chrome.browser.signin.services.ProfileDataCache;
import org.chromium.chrome.browser.signin.ui.R;
import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerProperties.AddAccountRowProperties;
import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerProperties.ExistingAccountRowProperties;
import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerProperties.IncognitoAccountRowProperties;
import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerProperties.ItemType;
import org.chromium.components.signin.AccountManagerFacade; import org.chromium.components.signin.AccountManagerFacade;
import org.chromium.components.signin.AccountManagerFacadeProvider; import org.chromium.components.signin.AccountManagerFacadeProvider;
import org.chromium.components.signin.AccountUtils; import org.chromium.components.signin.AccountUtils;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
package org.chromium.chrome.browser.signin.account_picker; package org.chromium.chrome.browser.signin.ui.account_picker;
import android.view.View.OnClickListener; import android.view.View.OnClickListener;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
package org.chromium.chrome.browser.signin.account_picker; package org.chromium.chrome.browser.signin.ui.account_picker;
import android.text.TextUtils; import android.text.TextUtils;
import android.view.View; import android.view.View;
...@@ -12,9 +12,9 @@ import android.widget.TextView; ...@@ -12,9 +12,9 @@ import android.widget.TextView;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import androidx.core.widget.ImageViewCompat; import androidx.core.widget.ImageViewCompat;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.signin.account_picker.AccountPickerProperties.ExistingAccountRowProperties;
import org.chromium.chrome.browser.signin.services.DisplayableProfileData; import org.chromium.chrome.browser.signin.services.DisplayableProfileData;
import org.chromium.chrome.browser.signin.ui.R;
import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerProperties.ExistingAccountRowProperties;
import org.chromium.ui.modelutil.PropertyKey; import org.chromium.ui.modelutil.PropertyKey;
import org.chromium.ui.modelutil.PropertyModel; import org.chromium.ui.modelutil.PropertyModel;
import org.chromium.ui.modelutil.PropertyModelChangeProcessor.ViewBinder; import org.chromium.ui.modelutil.PropertyModelChangeProcessor.ViewBinder;
...@@ -22,8 +22,9 @@ import org.chromium.ui.modelutil.PropertyModelChangeProcessor.ViewBinder; ...@@ -22,8 +22,9 @@ import org.chromium.ui.modelutil.PropertyModelChangeProcessor.ViewBinder;
/** /**
* This class regroups the buildView and bindView util methods of the * This class regroups the buildView and bindView util methods of the
* existing account row. * existing account row.
* TODO(https://crbug.com/1155123): Change this class to package internal after modularization
*/ */
class ExistingAccountRowViewBinder implements ViewBinder<PropertyModel, View, PropertyKey> { public class ExistingAccountRowViewBinder implements ViewBinder<PropertyModel, View, PropertyKey> {
/** /**
* View binder that associates an existing account view with the model of * View binder that associates an existing account view with the model of
* {@link ExistingAccountRowProperties}. * {@link ExistingAccountRowProperties}.
...@@ -59,8 +60,9 @@ class ExistingAccountRowViewBinder implements ViewBinder<PropertyModel, View, Pr ...@@ -59,8 +60,9 @@ class ExistingAccountRowViewBinder implements ViewBinder<PropertyModel, View, Pr
* *
* @param profileData profile data needs to bind. * @param profileData profile data needs to bind.
* @param view A view object inflated from @layout/account_picker_row. * @param view A view object inflated from @layout/account_picker_row.
* TODO(https://crbug.com/1155123): Change this method to package internal after modularization
*/ */
static void bindAccountView(DisplayableProfileData profileData, View view) { public static void bindAccountView(DisplayableProfileData profileData, View view) {
ImageView accountImage = view.findViewById(R.id.account_image); ImageView accountImage = view.findViewById(R.id.account_image);
accountImage.setImageDrawable(profileData.getImage()); accountImage.setImageDrawable(profileData.getImage());
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
package org.chromium.chrome.browser.signin.account_picker; package org.chromium.chrome.browser.signin.ui.account_picker;
import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.Mockito.verify; import static org.mockito.Mockito.verify;
...@@ -21,10 +21,10 @@ import org.robolectric.RuntimeEnvironment; ...@@ -21,10 +21,10 @@ import org.robolectric.RuntimeEnvironment;
import org.chromium.base.test.BaseRobolectricTestRunner; import org.chromium.base.test.BaseRobolectricTestRunner;
import org.chromium.chrome.browser.profiles.Profile; import org.chromium.chrome.browser.profiles.Profile;
import org.chromium.chrome.browser.signin.account_picker.AccountPickerProperties.AddAccountRowProperties;
import org.chromium.chrome.browser.signin.account_picker.AccountPickerProperties.ExistingAccountRowProperties;
import org.chromium.chrome.browser.signin.services.DisplayableProfileData; import org.chromium.chrome.browser.signin.services.DisplayableProfileData;
import org.chromium.chrome.browser.signin.services.IdentityServicesProvider; import org.chromium.chrome.browser.signin.services.IdentityServicesProvider;
import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerProperties.AddAccountRowProperties;
import org.chromium.chrome.browser.signin.ui.account_picker.AccountPickerProperties.ExistingAccountRowProperties;
import org.chromium.chrome.test.util.browser.signin.AccountManagerTestRule; import org.chromium.chrome.test.util.browser.signin.AccountManagerTestRule;
import org.chromium.components.signin.ProfileDataSource; import org.chromium.components.signin.ProfileDataSource;
import org.chromium.components.signin.test.util.FakeProfileDataSource; import org.chromium.components.signin.test.util.FakeProfileDataSource;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment