| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/update_client/update_client.h" | 5 #include "components/update_client/update_client.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 diff_error_code(0), | 48 diff_error_code(0), |
| 49 diff_extra_code1(0) { | 49 diff_extra_code1(0) { |
| 50 } | 50 } |
| 51 | 51 |
| 52 CrxUpdateItem::CrxUpdateItem(const CrxUpdateItem& other) = default; | 52 CrxUpdateItem::CrxUpdateItem(const CrxUpdateItem& other) = default; |
| 53 | 53 |
| 54 CrxUpdateItem::~CrxUpdateItem() { | 54 CrxUpdateItem::~CrxUpdateItem() { |
| 55 } | 55 } |
| 56 | 56 |
| 57 CrxComponent::CrxComponent() | 57 CrxComponent::CrxComponent() |
| 58 : allows_background_download(true), requires_network_encryption(true) {} | 58 : allows_background_download(true), |
| 59 requires_network_encryption(true), |
| 60 supports_group_policy_enable_component_updates(false) {} |
| 59 | 61 |
| 60 CrxComponent::CrxComponent(const CrxComponent& other) = default; | 62 CrxComponent::CrxComponent(const CrxComponent& other) = default; |
| 61 | 63 |
| 62 CrxComponent::~CrxComponent() { | 64 CrxComponent::~CrxComponent() { |
| 63 } | 65 } |
| 64 | 66 |
| 65 // It is important that an instance of the UpdateClient binds an unretained | 67 // It is important that an instance of the UpdateClient binds an unretained |
| 66 // pointer to itself. Otherwise, a life time circular dependency between this | 68 // pointer to itself. Otherwise, a life time circular dependency between this |
| 67 // instance and its inner members prevents the destruction of this instance. | 69 // instance and its inner members prevents the destruction of this instance. |
| 68 // Using unretained references is allowed in this case since the life time of | 70 // Using unretained references is allowed in this case since the life time of |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 std::unique_ptr<PingManager> ping_manager(new PingManager(config)); | 255 std::unique_ptr<PingManager> ping_manager(new PingManager(config)); |
| 254 return new UpdateClientImpl(config, std::move(ping_manager), | 256 return new UpdateClientImpl(config, std::move(ping_manager), |
| 255 &UpdateChecker::Create, &CrxDownloader::Create); | 257 &UpdateChecker::Create, &CrxDownloader::Create); |
| 256 } | 258 } |
| 257 | 259 |
| 258 void RegisterPrefs(PrefRegistrySimple* registry) { | 260 void RegisterPrefs(PrefRegistrySimple* registry) { |
| 259 PersistedData::RegisterPrefs(registry); | 261 PersistedData::RegisterPrefs(registry); |
| 260 } | 262 } |
| 261 | 263 |
| 262 } // namespace update_client | 264 } // namespace update_client |
| OLD | NEW |