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

Side by Side Diff: chrome/browser/chromeos/login/users/user_manager.h

Issue 375413002: Replace chromeos::UserManager::Get() with chromeos::GetUserManager(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 years, 5 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 | Annotate | Revision Log
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_USERS_USER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/login/user_flow.h" 10 #include "chrome/browser/chromeos/login/user_flow.h"
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 // construction and tears it down again on destruction. 374 // construction and tears it down again on destruction.
375 class ScopedTestUserManager { 375 class ScopedTestUserManager {
376 public: 376 public:
377 ScopedTestUserManager(); 377 ScopedTestUserManager();
378 ~ScopedTestUserManager(); 378 ~ScopedTestUserManager();
379 379
380 private: 380 private:
381 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); 381 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager);
382 }; 382 };
383 383
384 // Returns the UserManager singleton instance or |NULL| if the singleton has
385 // either not been created yet or is already destroyed. This method is not
386 // thread-safe and must be called from the main UI thread.
387 // Note: Since UserManager class will be moved to compoments/ all clients should
388 // use this getter and *not use* GetUserManager().
389 UserManager* GetUserManager();
390
384 } // namespace chromeos 391 } // namespace chromeos
385 392
386 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ 393 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698