forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chrome_component_updater_configurator.h
34 lines (25 loc) · 1.16 KB
/
chrome_component_updater_configurator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// 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_