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

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

Issue 321473003: Elevated install of recovery component (component update part) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 <string.h> 5 #include <string.h>
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 public: 334 public:
335 explicit PepperFlashComponentInstaller(const Version& version); 335 explicit PepperFlashComponentInstaller(const Version& version);
336 336
337 virtual ~PepperFlashComponentInstaller() {} 337 virtual ~PepperFlashComponentInstaller() {}
338 338
339 virtual void OnUpdateError(int error) OVERRIDE; 339 virtual void OnUpdateError(int error) OVERRIDE;
340 340
341 virtual bool Install(const base::DictionaryValue& manifest, 341 virtual bool Install(const base::DictionaryValue& manifest,
342 const base::FilePath& unpack_path) OVERRIDE; 342 const base::FilePath& unpack_path) OVERRIDE;
343 343
344 virtual base::FilePath GetBackupPath() const OVERRIDE;
345
346 virtual void InstallExternally() OVERRIDE;
347
344 virtual bool GetInstalledFile(const std::string& file, 348 virtual bool GetInstalledFile(const std::string& file,
345 base::FilePath* installed_file) OVERRIDE; 349 base::FilePath* installed_file) OVERRIDE;
346 350
347 private: 351 private:
348 Version current_version_; 352 Version current_version_;
349 }; 353 };
350 354
351 PepperFlashComponentInstaller::PepperFlashComponentInstaller( 355 PepperFlashComponentInstaller::PepperFlashComponentInstaller(
352 const Version& version) 356 const Version& version)
353 : current_version_(version) { 357 : current_version_(version) {
(...skipping 26 matching lines...) Expand all
380 current_version_ = version; 384 current_version_ = version;
381 PathService::Override(chrome::DIR_PEPPER_FLASH_PLUGIN, path); 385 PathService::Override(chrome::DIR_PEPPER_FLASH_PLUGIN, path);
382 path = path.Append(chrome::kPepperFlashPluginFilename); 386 path = path.Append(chrome::kPepperFlashPluginFilename);
383 BrowserThread::PostTask( 387 BrowserThread::PostTask(
384 BrowserThread::UI, 388 BrowserThread::UI,
385 FROM_HERE, 389 FROM_HERE,
386 base::Bind(&RegisterPepperFlashWithChrome, path, version, false)); 390 base::Bind(&RegisterPepperFlashWithChrome, path, version, false));
387 return true; 391 return true;
388 } 392 }
389 393
394 base::FilePath PepperFlashComponentInstaller::GetBackupPath() const {
395 return base::FilePath();
396 }
397
398 void PepperFlashComponentInstaller::InstallExternally() {
399 }
400
390 bool PepperFlashComponentInstaller::GetInstalledFile( 401 bool PepperFlashComponentInstaller::GetInstalledFile(
391 const std::string& file, 402 const std::string& file,
392 base::FilePath* installed_file) { 403 base::FilePath* installed_file) {
393 return false; 404 return false;
394 } 405 }
395 406
396 bool CheckPepperFlashManifest(const base::DictionaryValue& manifest, 407 bool CheckPepperFlashManifest(const base::DictionaryValue& manifest,
397 Version* version_out) { 408 Version* version_out) {
398 std::string name; 409 std::string name;
399 manifest.GetStringASCII("name", &name); 410 manifest.GetStringASCII("name", &name);
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 CommandLine* cmd_line = CommandLine::ForCurrentProcess(); 518 CommandLine* cmd_line = CommandLine::ForCurrentProcess();
508 if (cmd_line->HasSwitch(switches::kDisableBundledPpapiFlash)) 519 if (cmd_line->HasSwitch(switches::kDisableBundledPpapiFlash))
509 return; 520 return;
510 BrowserThread::PostTask(BrowserThread::FILE, 521 BrowserThread::PostTask(BrowserThread::FILE,
511 FROM_HERE, 522 FROM_HERE,
512 base::Bind(&StartPepperFlashUpdateRegistration, cus)); 523 base::Bind(&StartPepperFlashUpdateRegistration, cus));
513 #endif 524 #endif
514 } 525 }
515 526
516 } // namespace component_updater 527 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698