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

Side by Side Diff: chrome/browser/chromeos/system/automatic_reboot_manager.h

Issue 572873002: Declaring the weak_ptr_factory in proper order. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build break fixed 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_AUTOMATIC_REBOOT_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_AUTOMATIC_REBOOT_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_AUTOMATIC_REBOOT_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_AUTOMATIC_REBOOT_MANAGER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 bool have_update_reboot_needed_time_; 157 bool have_update_reboot_needed_time_;
158 base::TimeTicks update_reboot_needed_time_; 158 base::TimeTicks update_reboot_needed_time_;
159 159
160 // Whether a reboot has been requested. 160 // Whether a reboot has been requested.
161 bool reboot_requested_; 161 bool reboot_requested_;
162 162
163 // Timers that start and end the grace period. 163 // Timers that start and end the grace period.
164 scoped_ptr<base::OneShotTimer<AutomaticRebootManager> > grace_start_timer_; 164 scoped_ptr<base::OneShotTimer<AutomaticRebootManager> > grace_start_timer_;
165 scoped_ptr<base::OneShotTimer<AutomaticRebootManager> > grace_end_timer_; 165 scoped_ptr<base::OneShotTimer<AutomaticRebootManager> > grace_end_timer_;
166 166
167 ObserverList<AutomaticRebootManagerObserver, true> observers_;
168
167 base::WeakPtrFactory<AutomaticRebootManager> weak_ptr_factory_; 169 base::WeakPtrFactory<AutomaticRebootManager> weak_ptr_factory_;
168 170
169 ObserverList<AutomaticRebootManagerObserver, true> observers_;
170
171 DISALLOW_COPY_AND_ASSIGN(AutomaticRebootManager); 171 DISALLOW_COPY_AND_ASSIGN(AutomaticRebootManager);
172 }; 172 };
173 173
174 } // namespace system 174 } // namespace system
175 } // namespace chromeos 175 } // namespace chromeos
176 176
177 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_AUTOMATIC_REBOOT_MANAGER_H_ 177 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_AUTOMATIC_REBOOT_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/settings/session_manager_operation.cc ('k') | chrome/browser/chromeos/ui/idle_logout_dialog_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698