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 c7e523766884e56c90d3c24050bc0e6a92d03ed1..a0957a8348742fdf909667decbe05f317b7e4fe7 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 |
|
groby-ooo-7-16
2015/02/12 00:54:34
nit: Mind writing this is |allowButton_| and |deny
estark
2015/02/12 02:33:10
Done.
|
| + // 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]; |
| } |