Chromium Code Reviews| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 static std::string GetUserIdHashFromProfile(Profile* profile); | 55 static std::string GetUserIdHashFromProfile(Profile* profile); |
| 56 | 56 |
| 57 // Returns user profile dir in a format [u-user_id_hash]. | 57 // Returns user profile dir in a format [u-user_id_hash]. |
| 58 static base::FilePath GetUserProfileDir(const std::string& user_id_hash); | 58 static base::FilePath GetUserProfileDir(const std::string& user_id_hash); |
| 59 | 59 |
| 60 // Returns true if |profile| is the signin Profile. This can be used during | 60 // Returns true if |profile| is the signin Profile. This can be used during |
| 61 // construction of the signin Profile to determine if that Profile is the | 61 // construction of the signin Profile to determine if that Profile is the |
| 62 // signin Profile. | 62 // signin Profile. |
| 63 static bool IsSigninProfile(Profile* profile); | 63 static bool IsSigninProfile(Profile* profile); |
| 64 | 64 |
| 65 static bool IsProfileOwner(Profile* profile); | |
|
Nikita (slow)
2014/01/22 14:45:29
nit: IsOwnerProfile seems to fit pattern better.
ygorshenin1
2014/01/27 09:13:14
Done.
| |
| 66 | |
| 65 // Initialize a bunch of services that are tied to a browser profile. | 67 // Initialize a bunch of services that are tied to a browser profile. |
| 66 // TODO(dzhioev): Investigate whether or not this method is needed. | 68 // TODO(dzhioev): Investigate whether or not this method is needed. |
| 67 void ProfileStartup(Profile* profile, bool process_startup); | 69 void ProfileStartup(Profile* profile, bool process_startup); |
| 68 | 70 |
| 69 // Returns active user profile dir in a format [u-$hash]. | 71 // Returns active user profile dir in a format [u-$hash]. |
| 70 base::FilePath GetActiveUserProfileDir(); | 72 base::FilePath GetActiveUserProfileDir(); |
| 71 | 73 |
| 72 // Should called once after UserManager instance has been created. | 74 // Should called once after UserManager instance has been created. |
| 73 void Initialize(); | 75 void Initialize(); |
| 74 | 76 |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 103 | 105 |
| 104 // List of callbacks called after signin profile clearance. | 106 // List of callbacks called after signin profile clearance. |
| 105 std::vector<base::Closure> on_clear_callbacks_; | 107 std::vector<base::Closure> on_clear_callbacks_; |
| 106 | 108 |
| 107 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); | 109 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); |
| 108 }; | 110 }; |
| 109 | 111 |
| 110 } // namespace chromeos | 112 } // namespace chromeos |
| 111 | 113 |
| 112 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ | 114 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ |
| OLD | NEW |