Mohamed Heikal | 0b20ea11 | 2019-05-16 18:38:15 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CHROME_BROWSER_ANDROID_PROFILE_KEY_UTIL_H_ |
| 6 | #define CHROME_BROWSER_ANDROID_PROFILE_KEY_UTIL_H_ |
| 7 | |
| 8 | class ProfileKey; |
| 9 | |
| 10 | namespace android { |
| 11 | |
Side Yilmaz | 38279ab | 2020-11-06 10:54:07 | [diff] [blame] | 12 | // This gets the profile key belonging to the last used regular profile on |
| 13 | // android, (or the regular one in reduced mode). This works in both reduced |
| 14 | // mode and full browser mode. |
Mohamed Heikal | 0b20ea11 | 2019-05-16 18:38:15 | [diff] [blame] | 15 | // |
| 16 | // BE WARNED you should only use this if it would have been acceptable to use |
| 17 | // ProfileManager::GetLastUsedProfile() in the same context. If your usecase |
| 18 | // cares about different profiles and their keys, then you should plumb through |
| 19 | // the correct key instead. |
Side Yilmaz | f11da901 | 2020-03-10 15:22:44 | [diff] [blame] | 20 | ProfileKey* GetLastUsedRegularProfileKey(); |
| 21 | |
Mohamed Heikal | 0b20ea11 | 2019-05-16 18:38:15 | [diff] [blame] | 22 | } // namespace android |
| 23 | |
| 24 | #endif // CHROME_BROWSER_ANDROID_PROFILE_KEY_UTIL_H_ |