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

Side by Side Diff: chrome/browser/chromeos/profiles/profile_helper.h

Issue 495563003: Move ParallelAuthnticator to chromeos and rename it to CryptohomeAuthenticator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with ToT Created 6 years, 4 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) 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // Behaviour of this function does not correspond to its name and can be 119 // Behaviour of this function does not correspond to its name and can be
120 // very surprising, that's why it should not be used anymore. 120 // very surprising, that's why it should not be used anymore.
121 // Use |GetProfileByUser| instead. 121 // Use |GetProfileByUser| instead.
122 // TODO(dzhioev): remove this method. http://crbug.com/361528 122 // TODO(dzhioev): remove this method. http://crbug.com/361528
123 Profile* GetProfileByUserUnsafe(const user_manager::User* user); 123 Profile* GetProfileByUserUnsafe(const user_manager::User* user);
124 124
125 // Returns NULL if User is not created. 125 // Returns NULL if User is not created.
126 user_manager::User* GetUserByProfile(Profile* profile); 126 user_manager::User* GetUserByProfile(Profile* profile);
127 127
128 private: 128 private:
129 friend class CryptohomeAuthenticatorTest;
129 friend class DeviceSettingsTestBase; 130 friend class DeviceSettingsTestBase;
130 friend class extensions::ExtensionGarbageCollectorChromeOSUnitTest; 131 friend class extensions::ExtensionGarbageCollectorChromeOSUnitTest;
131 friend class FakeUserManager; 132 friend class FakeUserManager;
132 friend class KioskTest; 133 friend class KioskTest;
133 friend class MockUserManager; 134 friend class MockUserManager;
134 friend class MultiProfileUserControllerTest; 135 friend class MultiProfileUserControllerTest;
135 friend class ParallelAuthenticatorTest;
136 friend class ProfileHelperTest; 136 friend class ProfileHelperTest;
137 friend class ProfileListChromeOSTest; 137 friend class ProfileListChromeOSTest;
138 friend class SessionStateDelegateChromeOSTest; 138 friend class SessionStateDelegateChromeOSTest;
139 139
140 // BrowsingDataRemover::Observer implementation: 140 // BrowsingDataRemover::Observer implementation:
141 virtual void OnBrowsingDataRemoverDone() OVERRIDE; 141 virtual void OnBrowsingDataRemoverDone() OVERRIDE;
142 142
143 // OAuth2LoginManager::Observer overrides. 143 // OAuth2LoginManager::Observer overrides.
144 virtual void OnSessionRestoreStateChanged( 144 virtual void OnSessionRestoreStateChanged(
145 Profile* user_profile, 145 Profile* user_profile,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // If true and enable_profile_to_user_testing is true then primary user will 189 // If true and enable_profile_to_user_testing is true then primary user will
190 // always be returned by GetUserByProfile(). 190 // always be returned by GetUserByProfile().
191 static bool always_return_primary_user_for_testing; 191 static bool always_return_primary_user_for_testing;
192 192
193 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); 193 DISALLOW_COPY_AND_ASSIGN(ProfileHelper);
194 }; 194 };
195 195
196 } // namespace chromeos 196 } // namespace chromeos
197 197
198 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ 198 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698