| 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/google/google_brand.h" | 9 #include "chrome/browser/google/google_brand.h" |
| 10 #include "chrome/browser/update_client/chrome_update_query_params_delegate.h" | 10 #include "chrome/browser/update_client/chrome_update_query_params_delegate.h" |
| 11 #include "chrome/common/channel_info.h" | 11 #include "chrome/common/channel_info.h" |
| 12 #include "content/public/browser/browser_context.h" | 12 #include "content/public/browser/browser_context.h" |
| 13 | 13 |
| 14 namespace extensions { | 14 namespace extensions { |
| 15 | 15 |
| 16 // For privacy reasons, requires encryption of the component updater |
| 17 // communication with the update backend. |
| 16 ChromeUpdateClientConfig::ChromeUpdateClientConfig( | 18 ChromeUpdateClientConfig::ChromeUpdateClientConfig( |
| 17 content::BrowserContext* context) | 19 content::BrowserContext* context) |
| 18 : impl_(base::CommandLine::ForCurrentProcess(), | 20 : impl_(base::CommandLine::ForCurrentProcess(), |
| 19 context->GetRequestContext()) { | 21 context->GetRequestContext(), |
| 20 } | 22 true) {} |
| 21 | 23 |
| 22 int ChromeUpdateClientConfig::InitialDelay() const { | 24 int ChromeUpdateClientConfig::InitialDelay() const { |
| 23 return impl_.InitialDelay(); | 25 return impl_.InitialDelay(); |
| 24 } | 26 } |
| 25 | 27 |
| 26 int ChromeUpdateClientConfig::NextCheckDelay() const { | 28 int ChromeUpdateClientConfig::NextCheckDelay() const { |
| 27 return impl_.NextCheckDelay(); | 29 return impl_.NextCheckDelay(); |
| 28 } | 30 } |
| 29 | 31 |
| 30 int ChromeUpdateClientConfig::StepDelay() const { | 32 int ChromeUpdateClientConfig::StepDelay() const { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 return impl_.UseBackgroundDownloader(); | 96 return impl_.UseBackgroundDownloader(); |
| 95 } | 97 } |
| 96 | 98 |
| 97 bool ChromeUpdateClientConfig::UseCupSigning() const { | 99 bool ChromeUpdateClientConfig::UseCupSigning() const { |
| 98 return impl_.UseCupSigning(); | 100 return impl_.UseCupSigning(); |
| 99 } | 101 } |
| 100 | 102 |
| 101 ChromeUpdateClientConfig::~ChromeUpdateClientConfig() {} | 103 ChromeUpdateClientConfig::~ChromeUpdateClientConfig() {} |
| 102 | 104 |
| 103 } // namespace extensions | 105 } // namespace extensions |
| OLD | NEW |