| Index: chrome/browser/ui/avatar_button_error_controller.cc
|
| diff --git a/chrome/browser/ui/avatar_button_error_controller.cc b/chrome/browser/ui/avatar_button_error_controller.cc
|
| index 647ba4353b459add54a4f9e10346acb8e0e78f5d..b4a0ff4562488cefe331beab416fbf29dc2e1999 100644
|
| --- a/chrome/browser/ui/avatar_button_error_controller.cc
|
| +++ b/chrome/browser/ui/avatar_button_error_controller.cc
|
| @@ -8,7 +8,6 @@
|
| #include "chrome/browser/sync/profile_sync_service_factory.h"
|
| #include "components/browser_sync/profile_sync_service.h"
|
| #include "components/signin/core/browser/signin_error_controller.h"
|
| -#include "components/signin/core/common/profile_management_switches.h"
|
|
|
| using syncer::SyncErrorController;
|
|
|
| @@ -88,7 +87,7 @@ void AvatarButtonErrorController::SyncErrorObserver::OnErrorChanged() {
|
| bool AvatarButtonErrorController::SyncErrorObserver::HasSyncError() {
|
| browser_sync::ProfileSyncService* sync_service =
|
| ProfileSyncServiceFactory::GetForProfile(profile_);
|
| - if (switches::IsMaterialDesignUserMenu() && sync_service) {
|
| + if (sync_service) {
|
| SyncErrorController* sync_error_controller =
|
| sync_service->sync_error_controller();
|
| browser_sync::ProfileSyncService::Status status;
|
| @@ -102,8 +101,6 @@ bool AvatarButtonErrorController::SyncErrorObserver::HasSyncError() {
|
|
|
| SyncErrorController* AvatarButtonErrorController::SyncErrorObserver::
|
| GetSyncErrorControllerIfNeeded() {
|
| - if (!switches::IsMaterialDesignUserMenu())
|
| - return nullptr;
|
| browser_sync::ProfileSyncService* sync_service =
|
| ProfileSyncServiceFactory::GetForProfile(profile_);
|
| return sync_service ? sync_service->sync_error_controller() : nullptr;
|
|
|