Chromium Code Reviews| 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" | |
|
Devlin
2017/05/16 23:03:09
I think git cl format messed this up - please put
Minh X. Nguyen
2017/06/01 21:04:19
Done.
| |
| 5 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 6 #include "base/version.h" | 7 #include "base/version.h" |
| 7 #include "chrome/browser/component_updater/component_patcher_operation_out_of_pr ocess.h" | 8 #include "chrome/browser/component_updater/component_patcher_operation_out_of_pr ocess.h" |
| 8 #include "chrome/browser/component_updater/component_updater_utils.h" | 9 #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" | 10 #include "chrome/browser/google/google_brand.h" |
| 11 #include "chrome/browser/update_client/chrome_update_query_params_delegate.h" | 11 #include "chrome/browser/update_client/chrome_update_query_params_delegate.h" |
| 12 #include "chrome/common/channel_info.h" | 12 #include "chrome/common/channel_info.h" |
| 13 #include "components/prefs/pref_service.h" | 13 #include "components/prefs/pref_service.h" |
| 14 #include "components/update_client/persisted_data.h" | |
| 14 #include "components/update_client/update_query_params.h" | 15 #include "components/update_client/update_query_params.h" |
| 15 #include "content/public/browser/browser_context.h" | 16 #include "content/public/browser/browser_context.h" |
| 16 #include "content/public/browser/storage_partition.h" | 17 #include "content/public/browser/storage_partition.h" |
| 17 | 18 |
| 18 namespace extensions { | 19 namespace extensions { |
| 19 | 20 |
| 20 // For privacy reasons, requires encryption of the component updater | 21 // For privacy reasons, requires encryption of the component updater |
| 21 // communication with the update backend. | 22 // communication with the update backend. |
| 22 ChromeUpdateClientConfig::ChromeUpdateClientConfig( | 23 ChromeUpdateClientConfig::ChromeUpdateClientConfig( |
| 23 content::BrowserContext* context) | 24 content::BrowserContext* context) |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 113 PrefService* ChromeUpdateClientConfig::GetPrefService() const { | 114 PrefService* ChromeUpdateClientConfig::GetPrefService() const { |
| 114 return nullptr; | 115 return nullptr; |
| 115 } | 116 } |
| 116 | 117 |
| 117 bool ChromeUpdateClientConfig::IsPerUserInstall() const { | 118 bool ChromeUpdateClientConfig::IsPerUserInstall() const { |
| 118 return component_updater::IsPerUserInstall(); | 119 return component_updater::IsPerUserInstall(); |
| 119 } | 120 } |
| 120 | 121 |
| 121 ChromeUpdateClientConfig::~ChromeUpdateClientConfig() {} | 122 ChromeUpdateClientConfig::~ChromeUpdateClientConfig() {} |
| 122 | 123 |
| 124 std::unique_ptr<update_client::PersistedData> | |
| 125 ChromeUpdateClientConfig::CreateMetadata() const { | |
| 126 return base::MakeUnique<update_client::PersistedData>(GetPrefService()); | |
|
Devlin
2017/05/16 23:03:09
nitty nit: include-what-you-use: #include "base/me
Minh X. Nguyen
2017/06/01 21:04:19
Done.
| |
| 127 } | |
| 128 | |
| 123 } // namespace extensions | 129 } // namespace extensions |
| OLD | NEW |