Index: chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm |
diff --git a/chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm b/chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm |
index 3db743d6ed644f8f1c84fef566b8019eba708400..7306dd10c75c8b4cea9d06142bcf406b21529732 100644 |
--- a/chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm |
+++ b/chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm |
@@ -23,7 +23,6 @@ |
ZoomDecoration::~ZoomDecoration() { |
[bubble_ closeWithoutAnimation]; |
- bubble_.delegate = nil; |
} |
bool ZoomDecoration::UpdateIfNecessary( |
@@ -49,11 +48,8 @@ |
} |
void ZoomDecoration::ShowBubble(BOOL auto_close) { |
- if (bubble_) { |
- bubble_.delegate = nil; |
- [bubble_.window orderOut:nil]; |
- [bubble_ closeWithoutAnimation]; |
- } |
+ if (bubble_) |
+ return; |
content::WebContents* web_contents = owner_->GetWebContents(); |
if (!web_contents) |
@@ -142,7 +138,6 @@ |
} |
void ZoomDecoration::OnClose() { |
- bubble_.delegate = nil; |
bubble_ = nil; |
// If the page is at default zoom then hiding the zoom decoration |