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

Side by Side Diff: components/user_manager/user_manager.h

Issue 2452983002: ChromeOS: This CL moves chromeos/login/user_names* to user_mananger. (Closed)
Patch Set: Created 4 years, 1 month 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 COMPONENTS_USER_MANAGER_USER_MANAGER_H_ 5 #ifndef COMPONENTS_USER_MANAGER_USER_MANAGER_H_
6 #define COMPONENTS_USER_MANAGER_USER_MANAGER_H_ 6 #define COMPONENTS_USER_MANAGER_USER_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 static void SetInstance(UserManager* user_manager); 387 static void SetInstance(UserManager* user_manager);
388 388
389 // Pointer to the existing UserManager instance (if any). 389 // Pointer to the existing UserManager instance (if any).
390 // Usually is set by calling Initialize(), reset by calling Destroy(). 390 // Usually is set by calling Initialize(), reset by calling Destroy().
391 // Not owned since specific implementation of UserManager should decide on its 391 // Not owned since specific implementation of UserManager should decide on its
392 // own appropriate owner. For src/chrome implementation such place is 392 // own appropriate owner. For src/chrome implementation such place is
393 // g_browser_process->platform_part(). 393 // g_browser_process->platform_part().
394 static UserManager* instance; 394 static UserManager* instance;
395 395
396 private: 396 private:
397 friend class chromeos::ScopedUserManagerEnabler; 397 friend class ::chromeos::ScopedUserManagerEnabler;
398 398
399 // Same as Get() but doesn't won't crash is current instance is NULL. 399 // Same as Get() but doesn't won't crash is current instance is NULL.
400 static UserManager* GetForTesting(); 400 static UserManager* GetForTesting();
401 401
402 // Sets UserManager instance to the given |user_manager|. 402 // Sets UserManager instance to the given |user_manager|.
403 // Returns the previous value of the instance. 403 // Returns the previous value of the instance.
404 static UserManager* SetForTesting(UserManager* user_manager); 404 static UserManager* SetForTesting(UserManager* user_manager);
405 }; 405 };
406 406
407 } // namespace user_manager 407 } // namespace user_manager
408 408
409 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_H_ 409 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698