blob: d6e5e14a488e72c0aa978aab8c4423dfe5dda6fc [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_INSTALLER_GCAPI_GOOGLE_UPDATE_UTIL_H_
#define CHROME_INSTALLER_GCAPI_GOOGLE_UPDATE_UTIL_H_
#include <string>
namespace gcapi_internals {
extern const wchar_t kChromeRegClientsKey[];
extern const wchar_t kChromeRegClientStateKey[];
extern const wchar_t kChromeRegClientStateMediumKey[];
// Reads Chrome's brand from HKCU or HKLM. Returns true if |value| is populated
// with the brand.
bool GetBrand(std::wstring* value);
// Reads Chrome's experiment labels into |experiment_labels|.
bool ReadExperimentLabels(bool system_install, std::wstring* experiment_labels);
// Sets Chrome's experiment labels to |experiment_labels|.
bool SetExperimentLabels(bool system_install,
const std::wstring& experiment_labels);
} // namespace gcapi_internals
#endif // CHROME_INSTALLER_GCAPI_GOOGLE_UPDATE_UTIL_H_