blob: 950ce363dc30259ef5f30f3ed8acd96ff1e1fb5c [file] [log] [blame]
Mohamed Heikal0b20ea112019-05-16 18:38:151// 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
8class ProfileKey;
9
10namespace android {
11
Side Yilmaz38279ab2020-11-06 10:54:0712// 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 Heikal0b20ea112019-05-16 18:38:1515//
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 Yilmazf11da9012020-03-10 15:22:4420ProfileKey* GetLastUsedRegularProfileKey();
21
Mohamed Heikal0b20ea112019-05-16 18:38:1522} // namespace android
23
24#endif // CHROME_BROWSER_ANDROID_PROFILE_KEY_UTIL_H_