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

Unified Diff: chrome/browser/chromeos/setting_level_bubble_view.cc

Issue 8319008: aura: brightness and volume bubble. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: update Created 9 years, 2 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/chromeos/setting_level_bubble_view.cc
diff --git a/chrome/browser/chromeos/setting_level_bubble_view.cc b/chrome/browser/chromeos/setting_level_bubble_view.cc
index 5f4ae7c825184f07cd179de8b26a8598959a04d5..145471c5e9bca3b426ee8ff782bd5676cb887bd4 100644
--- a/chrome/browser/chromeos/setting_level_bubble_view.cc
+++ b/chrome/browser/chromeos/setting_level_bubble_view.cc
@@ -28,14 +28,14 @@ const int kProgressBarHeight = 17;
namespace chromeos {
SettingLevelBubbleView::SettingLevelBubbleView()
- : progress_bar_(NULL),
+ : progress_bar_(new views::ProgressBar()),
icon_(NULL) {
}
void SettingLevelBubbleView::Init(SkBitmap* icon, double level, bool enabled) {
+ DCHECK(!icon_);
DCHECK(icon);
icon_ = icon;
- progress_bar_ = new views::ProgressBar();
AddChildView(progress_bar_);
progress_bar_->SetDisplayRange(0.0, 100.0);
progress_bar_->EnableCanvasFlippingForRTLUI(true);
« no previous file with comments | « chrome/browser/chromeos/setting_level_bubble_view.h ('k') | chrome/browser/chromeos/volume_bubble_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698