Owen Min | 0d9183b1 | 2023-08-16 19:37:50 | [diff] [blame] | 1 | // Copyright 2023 The Chromium Authors |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "chrome/browser/enterprise/remote_commands/job_profile_picker.h" |
| 6 | |
Victor Hugo Vianna Silva | e165eeb | 2025-03-18 16:44:17 | [diff] [blame] | 7 | #include <variant> |
| 8 | |
Owen Min | 0d9183b1 | 2023-08-16 19:37:50 | [diff] [blame] | 9 | #include "base/values.h" |
| 10 | #include "build/build_config.h" |
| 11 | #include "chrome/browser/profiles/profile.h" |
| 12 | #include "chrome/browser/profiles/profile_attributes_storage.h" |
| 13 | #include "chrome/browser/profiles/profile_manager.h" |
| 14 | |
| 15 | namespace enterprise_commands { |
| 16 | namespace { |
| 17 | |
| 18 | const char kProfilePathField[] = "profile_path"; |
| 19 | |
| 20 | } // namespace |
| 21 | |
| 22 | JobProfilePicker::JobProfilePicker(Profile* profile) |
| 23 | : profile_or_profile_manager_(profile) {} |
| 24 | JobProfilePicker::JobProfilePicker(ProfileManager* profile_manager) |
| 25 | : profile_or_profile_manager_(profile_manager) {} |
| 26 | |
| 27 | JobProfilePicker::~JobProfilePicker() = default; |
| 28 | |
| 29 | bool JobProfilePicker::ParseCommandPayload( |
| 30 | const base::Value::Dict& command_payload) { |
Victor Hugo Vianna Silva |
|