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

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

Issue 645933002: [Mac] Fix accessibility crash because I am terrible with dynamic types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 621a6e705f09b390bb4a6a95a83b5069f55adc39..ad54f93b5a665fe8226909e1b64c2aca00e07953 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
@@ -773,7 +773,7 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
}
- (id)accessibilityAttributeValue:(NSString*)attribute {
- return @[];
+ return nil;
}
- (BOOL)canBecomeKeyView {
@@ -1152,7 +1152,7 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
// Add a dummy, empty element so that we don't initially display any
// focus rings.
NSButton* dummyFocusButton =
- [[[DummyWindowFocusButton alloc] initWithFrame:NSZeroRect] autorelease];
+ [[[DummyWindowFocusButton alloc] initWithFrame:NSZeroRect] autorelease];
[dummyFocusButton setNextKeyView:subView];
[[self window] makeFirstResponder:dummyFocusButton];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698