Index: chrome/browser/ui/views/location_bar/zoom_bubble_view.cc |
diff --git a/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc b/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc |
index 145ba83cb447cab8c4c80ddafe22b44097954d75..01c1ad62c97d2e6d9182241edc814b16ffbaf061 100644 |
--- a/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc |
+++ b/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc |
@@ -64,9 +64,21 @@ bool ZoomBubbleView::IsShowing() { |
return zoom_bubble_ != NULL; |
} |
-void ZoomBubbleView::WindowClosing() { |
- DCHECK(zoom_bubble_ == this); |
- zoom_bubble_ = NULL; |
+ZoomBubbleView::ZoomBubbleView(views::View* anchor_view, |
+ int zoom_percent, |
+ bool auto_close) |
+ : BubbleDelegateView(anchor_view, views::BubbleBorder::TOP_RIGHT), |
+ label_(NULL), |
+ zoom_percent_(zoom_percent), |
+ auto_close_(auto_close) { |
+ set_use_focusless(auto_close); |
+} |
+ |
+ZoomBubbleView::~ZoomBubbleView() { |
+} |
+ |
+void ZoomBubbleView::Close() { |
+ GetWidget()->Close(); |
} |
void ZoomBubbleView::Init() { |
@@ -84,18 +96,7 @@ void ZoomBubbleView::Init() { |
} |
} |
-ZoomBubbleView::ZoomBubbleView(views::View* anchor_view, |
- int zoom_percent, |
- bool auto_close) |
- : BubbleDelegateView(anchor_view, views::BubbleBorder::TOP_RIGHT), |
- zoom_percent_(zoom_percent), |
- auto_close_(auto_close) { |
- set_use_focusless(auto_close); |
-} |
- |
-ZoomBubbleView::~ZoomBubbleView() { |
-} |
- |
-void ZoomBubbleView::Close() { |
- GetWidget()->Close(); |
+void ZoomBubbleView::WindowClosing() { |
+ DCHECK(zoom_bubble_ == this); |
+ zoom_bubble_ = NULL; |
} |