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

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

Issue 14306004: Put Kiosk App parameters into device settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make kiosk app ID a separate field in policy. Created 7 years, 8 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 (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_USER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 static void Destroy(); 77 static void Destroy();
78 78
79 // Returns the singleton instance or |NULL| if the singleton has either not 79 // Returns the singleton instance or |NULL| if the singleton has either not
80 // been created yet or is already destroyed. This method is not thread-safe 80 // been created yet or is already destroyed. This method is not thread-safe
81 // and must be called from the main UI thread. 81 // and must be called from the main UI thread.
82 static UserManager* Get(); 82 static UserManager* Get();
83 83
84 // Registers user manager preferences. 84 // Registers user manager preferences.
85 static void RegisterPrefs(PrefRegistrySimple* registry); 85 static void RegisterPrefs(PrefRegistrySimple* registry);
86 86
87 // Parses a Kiosk App user ID. Fills in |app_id| and returns true on success.
bartfab (slow) 2013/04/25 11:17:28 I think it is not clear from the description that
Mattias Nissler (ping if slow) 2013/04/26 09:10:05 Obsolete.
88 static bool ParseKioskAppUserId(const std::string& user_id,
89 std::string* app_id);
90
91 // Formats a Kiosk App user ID for a given |app_id|.
92 static std::string FormatKioskAppUserId(const std::string& app_id);
93
87 virtual ~UserManager(); 94 virtual ~UserManager();
88 95
89 virtual UserImageManager* GetUserImageManager() = 0; 96 virtual UserImageManager* GetUserImageManager() = 0;
90 97
91 // Returns a list of users who have logged into this device previously. This 98 // Returns a list of users who have logged into this device previously. This
92 // is sorted by last login date with the most recent user at the beginning. 99 // is sorted by last login date with the most recent user at the beginning.
93 virtual const UserList& GetUsers() const = 0; 100 virtual const UserList& GetUsers() const = 0;
94 101
95 // Returns a list of users who are currently logged in. 102 // Returns a list of users who are currently logged in.
96 virtual const UserList& GetLoggedInUsers() const = 0; 103 virtual const UserList& GetLoggedInUsers() const = 0;
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 private: 334 private:
328 ScopedTestCrosSettings test_cros_settings_; 335 ScopedTestCrosSettings test_cros_settings_;
329 bool initialized_user_manager_; 336 bool initialized_user_manager_;
330 337
331 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); 338 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager);
332 }; 339 };
333 340
334 } // namespace chromeos 341 } // namespace chromeos
335 342
336 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ 343 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698