Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: components/update_client/update_client.cc

Issue 2199423002: Mechanical change in the component updater Configurator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/update_client/update_client.h ('k') | ios/chrome/browser/component_updater/ios_component_updater_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698