| 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 "components/prefs/pref_service.h" | 12 #include "components/prefs/pref_service.h" |
| 13 #include "content/public/browser/browser_context.h" | 13 #include "content/public/browser/browser_context.h" |
| 14 #include "content/public/browser/storage_partition.h" |
| 14 | 15 |
| 15 namespace extensions { | 16 namespace extensions { |
| 16 | 17 |
| 17 // For privacy reasons, requires encryption of the component updater | 18 // For privacy reasons, requires encryption of the component updater |
| 18 // communication with the update backend. | 19 // communication with the update backend. |
| 19 ChromeUpdateClientConfig::ChromeUpdateClientConfig( | 20 ChromeUpdateClientConfig::ChromeUpdateClientConfig( |
| 20 content::BrowserContext* context) | 21 content::BrowserContext* context) |
| 21 : impl_(base::CommandLine::ForCurrentProcess(), | 22 : impl_(base::CommandLine::ForCurrentProcess(), |
| 22 context->GetRequestContext(), | 23 content::BrowserContext::GetDefaultStoragePartition(context)-> |
| 24 GetURLRequestContext(), |
| 23 true) {} | 25 true) {} |
| 24 | 26 |
| 25 int ChromeUpdateClientConfig::InitialDelay() const { | 27 int ChromeUpdateClientConfig::InitialDelay() const { |
| 26 return impl_.InitialDelay(); | 28 return impl_.InitialDelay(); |
| 27 } | 29 } |
| 28 | 30 |
| 29 int ChromeUpdateClientConfig::NextCheckDelay() const { | 31 int ChromeUpdateClientConfig::NextCheckDelay() const { |
| 30 return impl_.NextCheckDelay(); | 32 return impl_.NextCheckDelay(); |
| 31 } | 33 } |
| 32 | 34 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 return impl_.UseCupSigning(); | 103 return impl_.UseCupSigning(); |
| 102 } | 104 } |
| 103 | 105 |
| 104 PrefService* ChromeUpdateClientConfig::GetPrefService() const { | 106 PrefService* ChromeUpdateClientConfig::GetPrefService() const { |
| 105 return nullptr; | 107 return nullptr; |
| 106 } | 108 } |
| 107 | 109 |
| 108 ChromeUpdateClientConfig::~ChromeUpdateClientConfig() {} | 110 ChromeUpdateClientConfig::~ChromeUpdateClientConfig() {} |
| 109 | 111 |
| 110 } // namespace extensions | 112 } // namespace extensions |
| OLD | NEW |