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..c1c3a0a21cdb4b0e984ab36d4af79a0a0373ada5 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,12 @@ 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_ |
+ NSString* denyButtonText = |
+ SysUTF16ToNSString( |
+ exclusive_access_bubble::GetDenyButtonTextForType(bubbleType_)); |
felt
2015/01/22 23:46:52
It looks like this is providing a bubbleType_ on t
Jialiu Lin
2015/01/23 22:55:47
Done.
|
+ [denyButton_ setTitle: denyButtonText]; |
} |
- (NSString*)getLabelText { |