| Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm
|
| index 2b2f2c63f91b704b040cea8b187ee1f2fb72a941..77d8ba115eb0b68db5053f30f785b4080cee8664 100644
|
| --- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm
|
| @@ -1224,7 +1224,16 @@ void RecordAppLaunch(Profile* profile, GURL url) {
|
| // Creates the button for "Managed Bookmarks", but does not position it.
|
| - (void)createManagedBookmarksButton {
|
| if (managedBookmarksButton_.get()) {
|
| + // The node's title might have changed if the user signed in or out.
|
| + // Make sure it's up to date now.
|
| + const BookmarkNode* node = bookmarkClient_->managed_node();
|
| + NSString* title = base::SysUTF16ToNSString(node->GetTitle());
|
| + NSCell* cell = [managedBookmarksButton_ cell];
|
| + [cell setTitle:title];
|
| +
|
| + // Its visibility may have changed too.
|
| [self setManagedBookmarksButtonVisibility];
|
| +
|
| return;
|
| }
|
|
|
|
|