blob: 59ebfaff4c5a7352e337b2176fc9293095544cce [file] [log] [blame]
Owen Min0d9183b12023-08-16 19:37:501// 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 Silvae165eeb2025-03-18 16:44:177#include <variant>
8
Owen Min0d9183b12023-08-16 19:37:509#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
15namespace enterprise_commands {
16namespace {
17
18const char kProfilePathField[] = "profile_path";
19
20} // namespace
21
22JobProfilePicker::JobProfilePicker(Profile* profile)
23 : profile_or_profile_manager_(profile) {}
24JobProfilePicker::JobProfilePicker(ProfileManager* profile_manager)
25 : profile_or_profile_manager_(profile_manager) {}
26
27JobProfilePicker::~JobProfilePicker() = default;
28
29bool JobProfilePicker::ParseCommandPayload(
30 const base::Value::Dict& command_payload) {
Victor Hugo Vianna Silva