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

Side by Side Diff: chrome/browser/chromeos/login/existing_user_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXISTING_USER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 // Interface to the signed settings store. 271 // Interface to the signed settings store.
272 CrosSettings* cros_settings_; 272 CrosSettings* cros_settings_;
273 273
274 // URL to append to start Guest mode with. 274 // URL to append to start Guest mode with.
275 GURL guest_mode_url_; 275 GURL guest_mode_url_;
276 276
277 // Used for notifications during the login process. 277 // Used for notifications during the login process.
278 content::NotificationRegistrar registrar_; 278 content::NotificationRegistrar registrar_;
279 279
280 // Factory of callbacks.
281 base::WeakPtrFactory<ExistingUserController> weak_factory_;
282
283 // The displayed email for the next login attempt set by |SetDisplayEmail|. 280 // The displayed email for the next login attempt set by |SetDisplayEmail|.
284 std::string display_email_; 281 std::string display_email_;
285 282
286 // Whether offline login attempt failed. 283 // Whether offline login attempt failed.
287 bool offline_failed_; 284 bool offline_failed_;
288 285
289 // Whether login attempt is running. 286 // Whether login attempt is running.
290 bool is_login_in_progress_; 287 bool is_login_in_progress_;
291 288
292 // Whether online login attempt succeeded. 289 // Whether online login attempt succeeded.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 allow_supervised_user_subscription_; 325 allow_supervised_user_subscription_;
329 scoped_ptr<CrosSettings::ObserverSubscription> allow_guest_subscription_; 326 scoped_ptr<CrosSettings::ObserverSubscription> allow_guest_subscription_;
330 scoped_ptr<CrosSettings::ObserverSubscription> users_subscription_; 327 scoped_ptr<CrosSettings::ObserverSubscription> users_subscription_;
331 scoped_ptr<CrosSettings::ObserverSubscription> 328 scoped_ptr<CrosSettings::ObserverSubscription>
332 local_account_auto_login_id_subscription_; 329 local_account_auto_login_id_subscription_;
333 scoped_ptr<CrosSettings::ObserverSubscription> 330 scoped_ptr<CrosSettings::ObserverSubscription>
334 local_account_auto_login_delay_subscription_; 331 local_account_auto_login_delay_subscription_;
335 332
336 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, ExistingUserLogin); 333 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, ExistingUserLogin);
337 334
335 // Factory of callbacks.
336 base::WeakPtrFactory<ExistingUserController> weak_factory_;
337
338 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); 338 DISALLOW_COPY_AND_ASSIGN(ExistingUserController);
339 }; 339 };
340 340
341 } // namespace chromeos 341 } // namespace chromeos
342 342
343 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 343 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698