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

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..91ab4bde3b18f1d1eef75deb2901c454cba9109e 100644
--- a/chrome/browser/chromeos/setting_level_bubble_view.cc
+++ b/chrome/browser/chromeos/setting_level_bubble_view.cc
@@ -30,13 +30,14 @@ namespace chromeos {
SettingLevelBubbleView::SettingLevelBubbleView()
: progress_bar_(NULL),
icon_(NULL) {
+ progress_bar_ = new views::ProgressBar();
msw 2011/10/27 18:30:52 FWIW, I'm still confused by this and think it's wr
alicet1 2011/10/28 20:02:41 updated.
+ AddChildView(progress_bar_);
}
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);
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