| Index: chrome/browser/ui/cocoa/tabs/tab_strip_background_view.mm
|
| diff --git a/chrome/browser/ui/cocoa/tabs/tab_strip_background_view.mm b/chrome/browser/ui/cocoa/tabs/tab_strip_background_view.mm
|
| index d8fba5d570bdd23a5f4588d866e23aaed71ead7e..4b32010d44e65a67c702b90540b9b1f7ec77acf8 100644
|
| --- a/chrome/browser/ui/cocoa/tabs/tab_strip_background_view.mm
|
| +++ b/chrome/browser/ui/cocoa/tabs/tab_strip_background_view.mm
|
| @@ -40,33 +40,13 @@
|
| }
|
| }
|
|
|
| -- (void)viewWillMoveToWindow:(NSWindow*)window {
|
| - if ([self window]) {
|
| - [[NSNotificationCenter defaultCenter]
|
| - removeObserver:self
|
| - name:NSWindowDidBecomeMainNotification
|
| - object:[self window]];
|
| - [[NSNotificationCenter defaultCenter]
|
| - removeObserver:self
|
| - name:NSWindowDidResignMainNotification
|
| - object:[self window]];
|
| - }
|
| - if (window) {
|
| - [[NSNotificationCenter defaultCenter]
|
| - addObserver:self
|
| - selector:@selector(windowFocusDidChange:)
|
| - name:NSWindowDidBecomeMainNotification
|
| - object:window];
|
| - [[NSNotificationCenter defaultCenter]
|
| - addObserver:self
|
| - selector:@selector(windowFocusDidChange:)
|
| - name:NSWindowDidResignMainNotification
|
| - object:window];
|
| - }
|
| +// ThemedWindowDrawing implementation.
|
| +
|
| +- (void)windowDidChangeTheme {
|
| + [self setNeedsDisplay:YES];
|
| }
|
|
|
| -- (void)windowFocusDidChange:(NSNotification*)notification {
|
| - // The theme image may depend on the window's active state.
|
| +- (void)windowDidChangeActive {
|
| [self setNeedsDisplay:YES];
|
| }
|
|
|
|
|