1 // Copyright 2022 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.
5 #ifndef COMPONENTS_FUCHSIA_COMPONENT_SUPPORT_APPEND_ARGUMENTS_FROM_FILE_H_
6 #define COMPONENTS_FUCHSIA_COMPONENT_SUPPORT_APPEND_ARGUMENTS_FROM_FILE_H_
13 namespace fuchsia_component_support {
15 // Reads serialized arguments from the optional file at `path` and appends them
16 // to `command_line`. See SerializeArguments for the converse. Returns true if
17 // the file was absent or was well-formed and successfully parsed, regardless of
18 // whether or not any arguments were found within it.
19 bool AppendArgumentsFromFile(const base::FilePath& path,
20 base::CommandLine& command_line);
22 } // namespace fuchsia_component_support
24 #endif // COMPONENTS_FUCHSIA_COMPONENT_SUPPORT_APPEND_ARGUMENTS_FROM_FILE_H_