Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1783)

Unified Diff: chrome/browser/ui/views/location_bar/zoom_bubble_view.cc

Issue 10703108: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
« no previous file with comments | « chrome/browser/media_gallery/media_gallery_registry.cc ('k') | content/browser/device_orientation/orientation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698