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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/version.h" | 6 #include "base/version.h" |
| 7 #include "chrome/browser/component_updater/component_patcher_operation_out_of_pr ocess.h" | 7 #include "chrome/browser/component_updater/component_patcher_operation_out_of_pr ocess.h" |
| 8 #include "chrome/browser/extensions/updater/chrome_update_client_config.h" | 8 #include "chrome/browser/extensions/updater/chrome_update_client_config.h" |
| 9 #include "chrome/browser/update_client/chrome_update_query_params_delegate.h" | 9 #include "chrome/browser/update_client/chrome_update_query_params_delegate.h" |
| 10 #include "chrome/common/channel_info.h" | 10 #include "chrome/common/channel_info.h" |
| 11 #include "content/public/browser/browser_context.h" | 11 #include "content/public/browser/browser_context.h" |
| 12 | 12 |
| 13 namespace extensions { | 13 namespace extensions { |
| 14 | 14 |
| 15 // For privacy reasons, requires encryption of the component updater | |
| 16 // communication with the update backend. | |
| 15 ChromeUpdateClientConfig::ChromeUpdateClientConfig( | 17 ChromeUpdateClientConfig::ChromeUpdateClientConfig( |
| 16 content::BrowserContext* context) | 18 content::BrowserContext* context) |
| 17 : impl_(base::CommandLine::ForCurrentProcess(), | 19 : impl_(base::CommandLine::ForCurrentProcess(), |
| 18 context->GetRequestContext()) { | 20 context->GetRequestContext(), |
| 19 } | 21 true) {} |
|
asargent_no_longer_on_chrome
2016/02/29 18:26:09
please include a comment hinting at the meaning of
| |
| 20 | 22 |
| 21 int ChromeUpdateClientConfig::InitialDelay() const { | 23 int ChromeUpdateClientConfig::InitialDelay() const { |
| 22 return impl_.InitialDelay(); | 24 return impl_.InitialDelay(); |
| 23 } | 25 } |
| 24 | 26 |
| 25 int ChromeUpdateClientConfig::NextCheckDelay() const { | 27 int ChromeUpdateClientConfig::NextCheckDelay() const { |
| 26 return impl_.NextCheckDelay(); | 28 return impl_.NextCheckDelay(); |
| 27 } | 29 } |
| 28 | 30 |
| 29 int ChromeUpdateClientConfig::StepDelay() const { | 31 int ChromeUpdateClientConfig::StepDelay() const { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 87 return impl_.UseBackgroundDownloader(); | 89 return impl_.UseBackgroundDownloader(); |
| 88 } | 90 } |
| 89 | 91 |
| 90 bool ChromeUpdateClientConfig::UseCupSigning() const { | 92 bool ChromeUpdateClientConfig::UseCupSigning() const { |
| 91 return impl_.UseCupSigning(); | 93 return impl_.UseCupSigning(); |
| 92 } | 94 } |
| 93 | 95 |
| 94 ChromeUpdateClientConfig::~ChromeUpdateClientConfig() {} | 96 ChromeUpdateClientConfig::~ChromeUpdateClientConfig() {} |
| 95 | 97 |
| 96 } // namespace extensions | 98 } // namespace extensions |
| OLD | NEW |