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

Side by Side Diff: chrome/installer/setup/install.cc

Issue 131763004: Merge 242400 "Remove installation of Chrome Frame." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 6 years, 11 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
« no previous file with comments | « chrome/installer/setup/cf_migration.cc ('k') | chrome/installer/setup/install_worker.h » ('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/installer/setup/install.h" 5 #include "chrome/installer/setup/install.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shlobj.h> 8 #include <shlobj.h>
9 #include <time.h> 9 #include <time.h>
10 10
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 InstallStatus InstallOrUpdateProduct( 500 InstallStatus InstallOrUpdateProduct(
501 const InstallationState& original_state, 501 const InstallationState& original_state,
502 const InstallerState& installer_state, 502 const InstallerState& installer_state,
503 const base::FilePath& setup_path, 503 const base::FilePath& setup_path,
504 const base::FilePath& archive_path, 504 const base::FilePath& archive_path,
505 const base::FilePath& install_temp_path, 505 const base::FilePath& install_temp_path,
506 const base::FilePath& src_path, 506 const base::FilePath& src_path,
507 const base::FilePath& prefs_path, 507 const base::FilePath& prefs_path,
508 const MasterPreferences& prefs, 508 const MasterPreferences& prefs,
509 const Version& new_version) { 509 const Version& new_version) {
510 DCHECK(!installer_state.products().empty());
511
510 // TODO(robertshield): Removing the pending on-reboot moves should be done 512 // TODO(robertshield): Removing the pending on-reboot moves should be done
511 // elsewhere. 513 // elsewhere.
512 // TODO(erikwright): Understand why this is Chrome Frame only and whether 514 // Remove any scheduled MOVEFILE_DELAY_UNTIL_REBOOT entries in the target of
513 // it also applies to App Host. Shouldn't it apply to any multi-install too? 515 // this installation. These may have been added during a previous uninstall of
514 const Products& products = installer_state.products(); 516 // the same version.
515 DCHECK(products.size()); 517 LOG_IF(ERROR, !RemoveFromMovesPendingReboot(installer_state.target_path()))
516 if (installer_state.FindProduct(BrowserDistribution::CHROME_FRAME)) { 518 << "Error accessing pending moves value.";
517 // Make sure that we don't end up deleting installed files on next reboot.
518 if (!RemoveFromMovesPendingReboot(installer_state.target_path()))
519 LOG(ERROR) << "Error accessing pending moves value.";
520 }
521 519
522 // Create VisualElementManifest.xml in |src_path| (if required) so that it 520 // Create VisualElementManifest.xml in |src_path| (if required) so that it
523 // looks as if it had been extracted from the archive when calling 521 // looks as if it had been extracted from the archive when calling
524 // InstallNewVersion() below. 522 // InstallNewVersion() below.
525 installer_state.UpdateStage(installer::CREATING_VISUAL_MANIFEST); 523 installer_state.UpdateStage(installer::CREATING_VISUAL_MANIFEST);
526 CreateVisualElementsManifest(src_path, new_version); 524 CreateVisualElementsManifest(src_path, new_version);
527 525
528 scoped_ptr<Version> existing_version; 526 scoped_ptr<Version> existing_version;
529 InstallStatus result = InstallNewVersion(original_state, installer_state, 527 InstallStatus result = InstallNewVersion(original_state, installer_state,
530 setup_path, archive_path, src_path, install_temp_path, new_version, 528 setup_path, archive_path, src_path, install_temp_path, new_version,
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 if (app_host_path.empty()) 701 if (app_host_path.empty())
704 return false; 702 return false;
705 703
706 CommandLine cmd(app_host_path); 704 CommandLine cmd(app_host_path);
707 cmd.AppendSwitchASCII(::switches::kInstallFromWebstore, app_code); 705 cmd.AppendSwitchASCII(::switches::kInstallFromWebstore, app_code);
708 VLOG(1) << "App install command: " << cmd.GetCommandLineString(); 706 VLOG(1) << "App install command: " << cmd.GetCommandLineString();
709 return base::LaunchProcess(cmd, base::LaunchOptions(), NULL); 707 return base::LaunchProcess(cmd, base::LaunchOptions(), NULL);
710 } 708 }
711 709
712 } // namespace installer 710 } // namespace installer
OLDNEW
« no previous file with comments | « chrome/installer/setup/cf_migration.cc ('k') | chrome/installer/setup/install_worker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698