OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include "chrome/browser/extensions/updater/chrome_update_client_config.h" |
| 6 |
5 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/memory/ptr_util.h" |
6 #include "base/version.h" | 9 #include "base/version.h" |
7 #include "chrome/browser/component_updater/component_patcher_operation_out_of_pr
ocess.h" | 10 #include "chrome/browser/component_updater/component_patcher_operation_out_of_pr
ocess.h" |
8 #include "chrome/browser/component_updater/component_updater_utils.h" | 11 #include "chrome/browser/component_updater/component_updater_utils.h" |
9 #include "chrome/browser/extensions/updater/chrome_update_client_config.h" | |
10 #include "chrome/browser/google/google_brand.h" | 12 #include "chrome/browser/google/google_brand.h" |
11 #include "chrome/browser/update_client/chrome_update_query_params_delegate.h" | 13 #include "chrome/browser/update_client/chrome_update_query_params_delegate.h" |
12 #include "chrome/common/channel_info.h" | 14 #include "chrome/common/channel_info.h" |
13 #include "components/prefs/pref_service.h" | 15 #include "components/prefs/pref_service.h" |
| 16 #include "components/update_client/persisted_data.h" |
14 #include "components/update_client/update_query_params.h" | 17 #include "components/update_client/update_query_params.h" |
15 #include "content/public/browser/browser_context.h" | 18 #include "content/public/browser/browser_context.h" |
16 #include "content/public/browser/storage_partition.h" | 19 #include "content/public/browser/storage_partition.h" |
17 | 20 |
18 namespace extensions { | 21 namespace extensions { |
19 | 22 |
20 // For privacy reasons, requires encryption of the component updater | 23 // For privacy reasons, requires encryption of the component updater |
21 // communication with the update backend. | 24 // communication with the update backend. |
22 ChromeUpdateClientConfig::ChromeUpdateClientConfig( | 25 ChromeUpdateClientConfig::ChromeUpdateClientConfig( |
23 content::BrowserContext* context) | 26 content::BrowserContext* context) |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 } | 106 } |
104 | 107 |
105 bool ChromeUpdateClientConfig::EnabledBackgroundDownloader() const { | 108 bool ChromeUpdateClientConfig::EnabledBackgroundDownloader() const { |
106 return impl_.EnabledBackgroundDownloader(); | 109 return impl_.EnabledBackgroundDownloader(); |
107 } | 110 } |
108 | 111 |
109 bool ChromeUpdateClientConfig::EnabledCupSigning() const { | 112 bool ChromeUpdateClientConfig::EnabledCupSigning() const { |
110 return impl_.EnabledCupSigning(); | 113 return impl_.EnabledCupSigning(); |
111 } | 114 } |
112 | 115 |
113 PrefService* ChromeUpdateClientConfig::GetPrefService() const { | |
114 return nullptr; | |
115 } | |
116 | |
117 bool ChromeUpdateClientConfig::IsPerUserInstall() const { | 116 bool ChromeUpdateClientConfig::IsPerUserInstall() const { |
118 return component_updater::IsPerUserInstall(); | 117 return component_updater::IsPerUserInstall(); |
119 } | 118 } |
120 | 119 |
121 ChromeUpdateClientConfig::~ChromeUpdateClientConfig() {} | 120 ChromeUpdateClientConfig::~ChromeUpdateClientConfig() {} |
122 | 121 |
| 122 std::unique_ptr<update_client::PersistedData> |
| 123 ChromeUpdateClientConfig::CreateMetadata() const { |
| 124 return base::MakeUnique<update_client::PersistedData>(nullptr); |
| 125 } |
| 126 |
123 } // namespace extensions | 127 } // namespace extensions |
OLD | NEW |