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

Side by Side Diff: chrome/browser/component_updater/pnacl_component_installer.cc

Issue 2276693002: Declare that recovery, pnacl, and swiftshader components do not require encryption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « no previous file | chrome/browser/component_updater/recovery_component_installer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/component_updater/recovery_component_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698