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

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

Issue 879993005: Add support for uninstalling components and use it in SupervisedUserWhitelistInstaller. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: fix Created 5 years, 10 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 (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/pnacl_component_installer.h" 5 #include "chrome/browser/component_updater/pnacl/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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 base::FilePath* installed_file) { 273 base::FilePath* installed_file) {
274 if (current_version().Equals(Version(kNullVersion))) 274 if (current_version().Equals(Version(kNullVersion)))
275 return false; 275 return false;
276 276
277 *installed_file = GetPnaclBaseDirectory() 277 *installed_file = GetPnaclBaseDirectory()
278 .AppendASCII(current_version().GetString()) 278 .AppendASCII(current_version().GetString())
279 .AppendASCII(file); 279 .AppendASCII(file);
280 return true; 280 return true;
281 } 281 }
282 282
283 bool PnaclComponentInstaller::Uninstall() {
284 return false;
285 }
286
283 CrxComponent PnaclComponentInstaller::GetCrxComponent() { 287 CrxComponent PnaclComponentInstaller::GetCrxComponent() {
284 CrxComponent pnacl_component; 288 CrxComponent pnacl_component;
285 pnacl_component.version = current_version(); 289 pnacl_component.version = current_version();
286 pnacl_component.name = "pnacl"; 290 pnacl_component.name = "pnacl";
287 pnacl_component.installer = this; 291 pnacl_component.installer = this;
288 pnacl_component.fingerprint = current_fingerprint(); 292 pnacl_component.fingerprint = current_fingerprint();
289 SetPnaclHash(&pnacl_component); 293 SetPnaclHash(&pnacl_component);
290 294
291 return pnacl_component; 295 return pnacl_component;
292 } 296 }
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 } // namespace component_updater 379 } // namespace component_updater
376 380
377 namespace pnacl { 381 namespace pnacl {
378 382
379 bool NeedsOnDemandUpdate() { 383 bool NeedsOnDemandUpdate() {
380 return base::subtle::NoBarrier_Load( 384 return base::subtle::NoBarrier_Load(
381 &component_updater::needs_on_demand_update) != 0; 385 &component_updater::needs_on_demand_update) != 0;
382 } 386 }
383 387
384 } // namespace pnacl 388 } // namespace pnacl
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698