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 <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
99 static std::string GetUserIdHashFromProfile(const Profile* profile); | 99 static std::string GetUserIdHashFromProfile(const Profile* profile); |
100 | 100 |
101 // Returns user profile dir in a format [u-user_id_hash]. | 101 // Returns user profile dir in a format [u-user_id_hash]. |
102 static base::FilePath GetUserProfileDir(const std::string& user_id_hash); | 102 static base::FilePath GetUserProfileDir(const std::string& user_id_hash); |
103 | 103 |
104 // Returns true if |profile| is the signin Profile. This can be used during | 104 // Returns true if |profile| is the signin Profile. This can be used during |
105 // construction of the signin Profile to determine if that Profile is the | 105 // construction of the signin Profile to determine if that Profile is the |
106 // signin Profile. | 106 // signin Profile. |
107 static bool IsSigninProfile(const Profile* profile); | 107 static bool IsSigninProfile(const Profile* profile); |
108 | 108 |
109 // Returns the path used for the lock screen apps profile - profile used | |
110 // for launching platform apps that can display windows on top of the lock | |
111 // screen. | |
112 static base::FilePath GetLockScreenAppProfilePath(); | |
113 | |
114 // Returns the name used for the lock screen app profile. | |
115 static std::string GetLockScreenAppProfileName(); | |
116 | |
117 // Returns whether |profile| is the lock screen app profile - the profile used | |
118 // for launching platform apps that can display windowa on top of the lock | |
Mr4D (OOO till 08-26)
2017/06/22 21:28:09
windowa = "a window" ?
tbarzic
2017/06/22 22:01:35
Done.
| |
119 // screen. | |
120 static bool IsLockScreenAppProfile(const Profile* profile); | |
121 | |
109 // Returns true when |profile| corresponds to owner's profile. | 122 // Returns true when |profile| corresponds to owner's profile. |
110 static bool IsOwnerProfile(const Profile* profile); | 123 static bool IsOwnerProfile(const Profile* profile); |
111 | 124 |
112 // Returns true when |profile| corresponds to the primary user profile | 125 // Returns true when |profile| corresponds to the primary user profile |
113 // of the current session. | 126 // of the current session. |
114 static bool IsPrimaryProfile(const Profile* profile); | 127 static bool IsPrimaryProfile(const Profile* profile); |
115 | 128 |
116 // Returns true when |profile| is for an ephemeral user. | 129 // Returns true when |profile| is for an ephemeral user. |
117 static bool IsEphemeralUserProfile(const Profile* profile); | 130 static bool IsEphemeralUserProfile(const Profile* profile); |
118 | 131 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
247 std::unique_ptr<FileFlusher> profile_flusher_; | 260 std::unique_ptr<FileFlusher> profile_flusher_; |
248 | 261 |
249 base::WeakPtrFactory<ProfileHelper> weak_factory_; | 262 base::WeakPtrFactory<ProfileHelper> weak_factory_; |
250 | 263 |
251 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); | 264 DISALLOW_COPY_AND_ASSIGN(ProfileHelper); |
252 }; | 265 }; |
253 | 266 |
254 } // namespace chromeos | 267 } // namespace chromeos |
255 | 268 |
256 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ | 269 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_PROFILE_HELPER_H_ |
OLD | NEW |