| 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 bool PnaclComponentInstaller::Uninstall() { | 284 bool PnaclComponentInstaller::Uninstall() { |
| 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 SetPnaclHash(&pnacl_component); | 295 SetPnaclHash(&pnacl_component); |
| 295 | 296 |
| 296 return pnacl_component; | 297 return pnacl_component; |
| 297 } | 298 } |
| 298 | 299 |
| 299 namespace { | 300 namespace { |
| 300 | 301 |
| 301 void FinishPnaclUpdateRegistration( | 302 void FinishPnaclUpdateRegistration( |
| 302 const base::Version& current_version, | 303 const base::Version& current_version, |
| 303 const std::string& current_fingerprint, | 304 const std::string& current_fingerprint, |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 } // namespace component_updater | 379 } // namespace component_updater |
| 379 | 380 |
| 380 namespace pnacl { | 381 namespace pnacl { |
| 381 | 382 |
| 382 bool NeedsOnDemandUpdate() { | 383 bool NeedsOnDemandUpdate() { |
| 383 return base::subtle::NoBarrier_Load( | 384 return base::subtle::NoBarrier_Load( |
| 384 &component_updater::needs_on_demand_update) != 0; | 385 &component_updater::needs_on_demand_update) != 0; |
| 385 } | 386 } |
| 386 | 387 |
| 387 } // namespace pnacl | 388 } // namespace pnacl |
| OLD | NEW |