| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_PROFILES_PROFILE_HELPER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // TODO(dzhioev): remove this method. http://crbug.com/361528 | 116 // TODO(dzhioev): remove this method. http://crbug.com/361528 |
| 117 Profile* GetProfileByUserUnsafe(const user_manager::User* user); | 117 Profile* GetProfileByUserUnsafe(const user_manager::User* user); |
| 118 | 118 |
| 119 // Returns NULL if User is not created. | 119 // Returns NULL if User is not created. |
| 120 user_manager::User* GetUserByProfile(Profile* profile); | 120 user_manager::User* GetUserByProfile(Profile* profile); |
| 121 | 121 |
| 122 static std::string GetUserIdHashByUserIdForTesting( | 122 static std::string GetUserIdHashByUserIdForTesting( |
| 123 const std::string& user_id); | 123 const std::string& user_id); |
| 124 | 124 |
| 125 private: | 125 private: |
| 126 // TODO(nkostylev): Create a test API class that will be the only one allowed |
| 127 // to access private test methods. |
| 126 friend class CryptohomeAuthenticatorTest; | 128 friend class CryptohomeAuthenticatorTest; |
| 127 friend class DeviceSettingsTestBase; | 129 friend class DeviceSettingsTestBase; |
| 130 friend class ExistingUserControllerTest; |
| 128 friend class extensions::ExtensionGarbageCollectorChromeOSUnitTest; | 131 friend class extensions::ExtensionGarbageCollectorChromeOSUnitTest; |
| 129 friend class FakeUserManager; | 132 friend class FakeUserManager; |
| 130 friend class KioskTest; | 133 friend class KioskTest; |
| 131 friend class MockUserManager; | 134 friend class MockUserManager; |
| 132 friend class MultiProfileUserControllerTest; | 135 friend class MultiProfileUserControllerTest; |
| 133 friend class ProfileHelperTest; | 136 friend class ProfileHelperTest; |
| 134 friend class ProfileListChromeOSTest; | 137 friend class ProfileListChromeOSTest; |
| 135 friend class SessionStateDelegateChromeOSTest; | 138 friend class SessionStateDelegateChromeOSTest; |
| 136 friend class SystemTrayDelegateChromeOSTest; | 139 friend class SystemTrayDelegateChromeOSTest; |
| 137 | 140 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // If true and enable_profile_to_user_testing is true then primary user will | 190 // If true and enable_profile_to_user_testing is true then primary user will |
| 188 // always be returned by GetUserByProfile(). | 191 // always be returned by GetUserByProfile(). |
| 189 static bool always_return_primary_user_for_testing; | 192 static bool always_return_primary_user_for_testing; |
| 190 | 193 |
| 191 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); | 194 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); |
| 192 }; | 195 }; |
| 193 | 196 |
| 194 } // namespace chromeos | 197 } // namespace chromeos |
| 195 | 198 |
| 196 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ | 199 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ |
| OLD | NEW |