#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)
std::string ReadChromeVersionExtra(const base::FilePath& path) {
std::string contents;
if (!base::ReadFileToStringWithMaxSize(path, &contents, 128)) {
return std::string();
}
return std::string(base::TrimWhitespaceASCII(contents, base::TRIM_ALL));
}
#endif
}
void AppendExtraArgumentsToCommandLine(base::CommandLine* command_line) { … }
void PossiblyDetermineFallbackChromeChannel(const char* launched_binary_path) { … }