Chromium Code Reviews| Index: chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm |
| diff --git a/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm b/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm |
| index d6c0de1689d19206affeb70769be10d861a2380a..e990cff6970eb66c0b03bc29b5f1988a023ab13a 100644 |
| --- a/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm |
| +++ b/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm |
| @@ -258,6 +258,17 @@ const float kHideDuration = 0.7; |
| labelFrame.origin.x += NSWidth(labelFrame) - NSWidth(textFrame); |
| labelFrame.size = textFrame.size; |
| [exitLabel_ setFrame:labelFrame]; |
| + |
| + // Update the title of denyButton_ according to the current bubbleType_ |
| + if (bubbleType_ == EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_BUTTONS || |
| + bubbleType_ == |
| + EXCLUSIVE_ACCESS_BUBBLE_TYPE_FULLSCREEN_MOUSELOCK_BUTTONS || |
| + bubbleType_ == EXCLUSIVE_ACCESS_BUBBLE_TYPE_MOUSELOCK_BUTTONS) { |
| + NSString* denyButtonText = |
| + SysUTF16ToNSString( |
| + exclusive_access_bubble::GetDenyButtonTextForType(bubbleType_)); |
| + [denyButton_ setTitle: denyButtonText]; |
|
Avi (use Gerrit)
2015/01/27 19:27:12
no space after :
Jialiu Lin
2015/01/27 19:51:09
Done.
|
| + } |
| } |
| - (NSString*)getLabelText { |