| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/component_updater/pnacl_component_installer.h" | 5 #include "chrome/browser/component_updater/pnacl_component_installer.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 return false; | 285 return false; |
| 286 } | 286 } |
| 287 | 287 |
| 288 CrxComponent PnaclComponentInstaller::GetCrxComponent() { | 288 CrxComponent PnaclComponentInstaller::GetCrxComponent() { |
| 289 CrxComponent pnacl_component; | 289 CrxComponent pnacl_component; |
| 290 pnacl_component.version = current_version(); | 290 pnacl_component.version = current_version(); |
| 291 pnacl_component.name = "pnacl"; | 291 pnacl_component.name = "pnacl"; |
| 292 pnacl_component.installer = this; | 292 pnacl_component.installer = this; |
| 293 pnacl_component.fingerprint = current_fingerprint(); | 293 pnacl_component.fingerprint = current_fingerprint(); |
| 294 pnacl_component.supports_group_policy_enable_component_updates = true; | 294 pnacl_component.supports_group_policy_enable_component_updates = true; |
| 295 pnacl_component.requires_network_encryption = false; |
| 295 SetPnaclHash(&pnacl_component); | 296 SetPnaclHash(&pnacl_component); |
| 296 | 297 |
| 297 return pnacl_component; | 298 return pnacl_component; |
| 298 } | 299 } |
| 299 | 300 |
| 300 namespace { | 301 namespace { |
| 301 | 302 |
| 302 void FinishPnaclUpdateRegistration( | 303 void FinishPnaclUpdateRegistration( |
| 303 const base::Version& current_version, | 304 const base::Version& current_version, |
| 304 const std::string& current_fingerprint, | 305 const std::string& current_fingerprint, |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 } // namespace component_updater | 380 } // namespace component_updater |
| 380 | 381 |
| 381 namespace pnacl { | 382 namespace pnacl { |
| 382 | 383 |
| 383 bool NeedsOnDemandUpdate() { | 384 bool NeedsOnDemandUpdate() { |
| 384 return base::subtle::NoBarrier_Load( | 385 return base::subtle::NoBarrier_Load( |
| 385 &component_updater::needs_on_demand_update) != 0; | 386 &component_updater::needs_on_demand_update) != 0; |
| 386 } | 387 } |
| 387 | 388 |
| 388 } // namespace pnacl | 389 } // namespace pnacl |
| OLD | NEW |