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

Side by Side Diff: chrome/installer/util/install_util.cc

Issue 2589753002: Remove multi-install from chrome/installer/setup. (Closed)
Patch Set: revert util/product changes for now Created 4 years 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 // See the corresponding header file for description of the functions in this 5 // See the corresponding header file for description of the functions in this
6 // file. 6 // file.
7 7
8 #include "chrome/installer/util/install_util.h" 8 #include "chrome/installer/util/install_util.h"
9 9
10 #include <shellapi.h> 10 #include <shellapi.h>
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 return value == value_to_match_; 489 return value == value_to_match_;
490 } 490 }
491 491
492 // static 492 // static
493 int InstallUtil::GetInstallReturnCode(installer::InstallStatus status) { 493 int InstallUtil::GetInstallReturnCode(installer::InstallStatus status) {
494 switch (status) { 494 switch (status) {
495 case installer::FIRST_INSTALL_SUCCESS: 495 case installer::FIRST_INSTALL_SUCCESS:
496 case installer::INSTALL_REPAIRED: 496 case installer::INSTALL_REPAIRED:
497 case installer::NEW_VERSION_UPDATED: 497 case installer::NEW_VERSION_UPDATED:
498 case installer::IN_USE_UPDATED: 498 case installer::IN_USE_UPDATED:
499 case installer::UNUSED_BINARIES_UNINSTALLED:
500 case installer::OLD_VERSION_DOWNGRADE: 499 case installer::OLD_VERSION_DOWNGRADE:
501 case installer::IN_USE_DOWNGRADE: 500 case installer::IN_USE_DOWNGRADE:
502 return 0; 501 return 0;
503 default: 502 default:
504 return status; 503 return status;
505 } 504 }
506 } 505 }
507 506
508 // static 507 // static
509 void InstallUtil::ComposeCommandLine(const base::string16& program, 508 void InstallUtil::ComposeCommandLine(const base::string16& program,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 // Open the program and see if it references the expected file. 633 // Open the program and see if it references the expected file.
635 base::File file; 634 base::File file;
636 BY_HANDLE_FILE_INFORMATION info = {}; 635 BY_HANDLE_FILE_INFORMATION info = {};
637 636
638 return (OpenForInfo(path, &file) && 637 return (OpenForInfo(path, &file) &&
639 GetInfo(file, &info) && 638 GetInfo(file, &info) &&
640 info.dwVolumeSerialNumber == file_info_.dwVolumeSerialNumber && 639 info.dwVolumeSerialNumber == file_info_.dwVolumeSerialNumber &&
641 info.nFileIndexHigh == file_info_.nFileIndexHigh && 640 info.nFileIndexHigh == file_info_.nFileIndexHigh &&
642 info.nFileIndexLow == file_info_.nFileIndexLow); 641 info.nFileIndexLow == file_info_.nFileIndexLow);
643 } 642 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698