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

Side by Side Diff: chrome/browser/chromeos/login/enrollment/auto_enrollment_controller.h

Issue 566863003: Declaring the weak_ptr_factory in proper order. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 // Starts the auto-enrollment client. 77 // Starts the auto-enrollment client.
78 void StartClient(const std::vector<std::string>& state_keys, bool first_boot); 78 void StartClient(const std::vector<std::string>& state_keys, bool first_boot);
79 79
80 // Sets |state_| and notifies |progress_callbacks_|. 80 // Sets |state_| and notifies |progress_callbacks_|.
81 void UpdateState(policy::AutoEnrollmentState state); 81 void UpdateState(policy::AutoEnrollmentState state);
82 82
83 policy::AutoEnrollmentState state_; 83 policy::AutoEnrollmentState state_;
84 ProgressCallbackList progress_callbacks_; 84 ProgressCallbackList progress_callbacks_;
85 85
86 scoped_ptr<policy::AutoEnrollmentClient> client_;
87
86 base::WeakPtrFactory<AutoEnrollmentController> client_start_weak_factory_; 88 base::WeakPtrFactory<AutoEnrollmentController> client_start_weak_factory_;
87 89
88 scoped_ptr<policy::AutoEnrollmentClient> client_;
89
90 DISALLOW_COPY_AND_ASSIGN(AutoEnrollmentController); 90 DISALLOW_COPY_AND_ASSIGN(AutoEnrollmentController);
91 }; 91 };
92 92
93 } // namespace chromeos 93 } // namespace chromeos
94 94
95 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H _ 95 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_AUTO_ENROLLMENT_CONTROLLER_H _
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.h ('k') | chrome/browser/chromeos/login/existing_user_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698