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

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm

Issue 2920853004: [sync] Display an error when sync settings aren't confirmed (Closed)
Patch Set: Created 3 years, 7 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/browser/ui/cocoa/profiles/profile_chooser_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
index 462bca44b95ed3424b5dcf43c9fd18ee3d5cf5fe..b35548d07e229adb121684b0ede6408743189feb 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
@@ -1207,9 +1207,12 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
- (NSView*)buildSyncErrorViewIfNeeded {
int contentStringId, buttonStringId;
SEL buttonAction;
+ SigninManagerBase* signinManager =
+ SigninManagerFactory::GetForProfile(browser_->profile());
sync_ui_util::AvatarSyncErrorType error =
sync_ui_util::GetMessagesForAvatarSyncError(
- browser_->profile(), &contentStringId, &buttonStringId);
+ browser_->profile(), *signinManager, &contentStringId,
+ &buttonStringId);
switch (error) {
case sync_ui_util::MANAGED_USER_UNRECOVERABLE_ERROR:
buttonAction = @selector(showSignoutView:);

Powered by Google App Engine
This is Rietveld 408576698