chromium/chrome/app/chrome_main_linux.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/app/chrome_main_linux.h"

#include <string>
#include <vector>

#include "base/command_line.h"
#include "base/environment.h"
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/strings/string_tokenizer.h"
#include "base/strings/string_util.h"
#include "chrome/common/channel_info.h"

namespace {

void AppendExtraArgsFromEnvVar(const std::string& env_var_name,
                               std::vector<std::string>& out_args) {}

#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
// Reads the contents of the "CHROME_VERSION_EXTRA" file at the specified path.
std::string ReadChromeVersionExtra(const base::FilePath& path) {
  std::string contents;
  // Don't read the file if it's unexpectedly large.
  if (!base::ReadFileToStringWithMaxSize(path, &contents, 128)) {
    return std::string();
  }

  return std::string(base::TrimWhitespaceASCII(contents, base::TRIM_ALL));
}
#endif  // BUILDFLAG(GOOGLE_CHROME_BRANDING)

}  // namespace

void AppendExtraArgumentsToCommandLine(base::CommandLine* command_line) {}

void PossiblyDetermineFallbackChromeChannel(const char* launched_binary_path) {}