blob: 608f1f15334282581db98c45e9ea2387200977d3 [file] [log] [blame]
// Copyright 2014 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_BROWSER_COMPONENT_UPDATER_CHROME_COMPONENT_UPDATER_CONFIGURATOR_H_
#define CHROME_BROWSER_COMPONENT_UPDATER_CHROME_COMPONENT_UPDATER_CONFIGURATOR_H_
#include "base/memory/ref_counted.h"
#include "components/update_client/configurator.h"
class PrefRegistrySimple;
class PrefService;
namespace base {
class CommandLine;
}
namespace component_updater {
// Registers preferences associated with the component updater configurator
// for Chrome. The preferences must be registered with the local pref store
// before they can be queried by the configurator instance.
// This function is called before MakeChromeComponentUpdaterConfigurator.
void RegisterPrefsForChromeComponentUpdaterConfigurator(
PrefRegistrySimple* registry);
scoped_refptr<update_client::Configurator>
MakeChromeComponentUpdaterConfigurator(
const base::CommandLine* cmdline,
PrefService* pref_service);
} // namespace component_updater
#endif // CHROME_BROWSER_COMPONENT_UPDATER_CHROME_COMPONENT_UPDATER_CONFIGURATOR_H_