Index: chrome/browser/ui/cocoa/version_independent_window.mm |
diff --git a/chrome/browser/ui/cocoa/version_independent_window.mm b/chrome/browser/ui/cocoa/version_independent_window.mm |
index 24284a490d064e8b943e5d236653544bd56db79c..98dacb313550247cd9182e3d86d9085b9c61e67c 100644 |
--- a/chrome/browser/ui/cocoa/version_independent_window.mm |
+++ b/chrome/browser/ui/cocoa/version_independent_window.mm |
@@ -32,12 +32,6 @@ |
[super setFrameSize:size]; |
} |
-// The contentView gets moved around during certain full-screen operations. |
-// This is less than ideal, and should eventually be removed. |
-- (void)viewDidMoveToSuperview { |
- [self setFrame:[[self superview] bounds]]; |
-} |
- |
@end |
@implementation NSWindow (VersionIndependentWindow) |
@@ -79,8 +73,8 @@ |
chromeWindowView_.reset([[FullSizeContentView alloc] init]); |
[chromeWindowView_ |
setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable]; |
- [chromeWindowView_ setFrame:[[[self contentView] superview] bounds]]; |
[self setContentView:chromeWindowView_]; |
+ [chromeWindowView_ setFrame:[[[self contentView] superview] bounds]]; |
} |
} |
return self; |