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

Unified Diff: ash/system/brightness/tray_brightness.cc

Issue 11415014: Stop using shell::GetInstance()->system_tray() in system tray items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix single-letter typo :(. Created 8 years, 1 month 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
« no previous file with comments | « ash/system/brightness/tray_brightness.h ('k') | ash/system/chromeos/network/network_detailed_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/brightness/tray_brightness.cc
diff --git a/ash/system/brightness/tray_brightness.cc b/ash/system/brightness/tray_brightness.cc
index 425dc3b350510cae14f9e34e0ba50ae6617c7c6a..bc9977ac0a33fb0ffee0126ea3a04c6c084a8c59 100644
--- a/ash/system/brightness/tray_brightness.cc
+++ b/ash/system/brightness/tray_brightness.cc
@@ -124,8 +124,9 @@ class BrightnessView : public views::View,
} // namespace tray
-TrayBrightness::TrayBrightness()
- : weak_ptr_factory_(this),
+TrayBrightness::TrayBrightness(SystemTray* system_tray)
+ : SystemTrayItem(system_tray),
+ weak_ptr_factory_(this),
brightness_view_(NULL),
is_default_view_(false),
current_percent_(100.0),
« no previous file with comments | « ash/system/brightness/tray_brightness.h ('k') | ash/system/chromeos/network/network_detailed_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698