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

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

Issue 497733002: Declaring the weak_ptr_factory in proper order. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Maintaining function in proper order Created 6 years, 3 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
« no previous file with comments | « ash/system/chromeos/brightness/tray_brightness.h ('k') | ash/wm/workspace/workspace_window_resizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/brightness/tray_brightness.cc
diff --git a/ash/system/chromeos/brightness/tray_brightness.cc b/ash/system/chromeos/brightness/tray_brightness.cc
index ee511ea97f67a877dd8898e25cbb63eea19bee56..5c804e85d71e4c9e98b4fa095320bec6c1d250ac 100644
--- a/ash/system/chromeos/brightness/tray_brightness.cc
+++ b/ash/system/chromeos/brightness/tray_brightness.cc
@@ -174,10 +174,10 @@ void BrightnessView::SliderDragEnded(views::Slider* slider) {
TrayBrightness::TrayBrightness(SystemTray* system_tray)
: SystemTrayItem(system_tray),
- weak_ptr_factory_(this),
brightness_view_(NULL),
current_percent_(100.0),
- got_current_percent_(false) {
+ got_current_percent_(false),
+ weak_ptr_factory_(this) {
// Post a task to get the initial brightness; the BrightnessControlDelegate
// isn't created yet.
base::MessageLoopForUI::current()->PostTask(
« no previous file with comments | « ash/system/chromeos/brightness/tray_brightness.h ('k') | ash/wm/workspace/workspace_window_resizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698