diff options
Diffstat (limited to 'chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm')
-rw-r--r-- | chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm b/chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm index 499dc93..ad2c835 100644 --- a/chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm +++ b/chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm @@ -15,6 +15,7 @@ #include "chrome/browser/browser_process.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/profiles/profile_manager.h" +#import "chrome/browser/ui/cocoa/browser_window_controller.h" #include "chrome/browser/ui/cocoa/confirm_quit.h" #include "chrome/common/pref_names.h" #include "grit/generated_resources.h" @@ -154,7 +155,10 @@ void RegisterLocalState(PrefRegistrySimple* registry) { - (void)setCurrentProgress:(NSAnimationProgress)progress { for (NSWindow* window in [application_ windows]) { - [window setAlphaValue:1.0 - progress]; + if ([[window windowController] + isKindOfClass:[BrowserWindowController class]]) { + [window setAlphaValue:1.0 - progress]; + } } } |