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 c7e523766884e56c90d3c24050bc0e6a92d03ed1..06d8e85cb6f0a41898c6df06ccf256878029842c 100644 |
--- a/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm |
+++ b/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm |
@@ -262,13 +262,16 @@ const float kHideDuration = 0.7; |
labelFrame.size = textFrame.size; |
[exitLabel_ setFrame:labelFrame]; |
- // Update the title of denyButton_ according to the current bubbleType_, |
- // or show no button at all. |
+ // Update the title of |allowButton_| and |denyButton_| according to the |
+ // current |bubbleType_|, or show no button at all. |
if (exclusive_access_bubble::ShowButtonsForType(bubbleType_)) { |
NSString* denyButtonText = |
SysUTF16ToNSString( |
exclusive_access_bubble::GetDenyButtonTextForType(bubbleType_)); |
[denyButton_ setTitle:denyButtonText]; |
+ NSString* allowButtonText = SysUTF16ToNSString( |
+ exclusive_access_bubble::GetAllowButtonTextForType(bubbleType_, url_)); |
+ [allowButton_ setTitle:allowButtonText]; |
} else { |
[self showButtons:NO]; |
} |