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

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

Issue 6816024: Revert 80819 due to failed tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 8 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/gcapi/gcapi.cc ('k') | chrome/installer/util/google_chrome_distribution.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file contains the definitions of the installer functions that build 5 // This file contains the definitions of the installer functions that build
6 // the WorkItemList used to install the application. 6 // the WorkItemList used to install the application.
7 7
8 #include "chrome/installer/setup/install_worker.h" 8 #include "chrome/installer/setup/install_worker.h"
9 9
10 #include <shlobj.h> 10 #include <shlobj.h>
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 505
506 install_list->AddDeleteTreeWorkItem(new_chrome_exe, temp_path); 506 install_list->AddDeleteTreeWorkItem(new_chrome_exe, temp_path);
507 install_list->AddCopyTreeWorkItem( 507 install_list->AddCopyTreeWorkItem(
508 src_path.Append(installer::kChromeExe).value(), 508 src_path.Append(installer::kChromeExe).value(),
509 target_path.Append(installer::kChromeExe).value(), 509 target_path.Append(installer::kChromeExe).value(),
510 temp_path.value(), WorkItem::NEW_NAME_IF_IN_USE, new_chrome_exe.value()); 510 temp_path.value(), WorkItem::NEW_NAME_IF_IN_USE, new_chrome_exe.value());
511 511
512 // Extra executable for 64 bit systems. 512 // Extra executable for 64 bit systems.
513 // NOTE: We check for "not disabled" so that if the API call fails, we play it 513 // NOTE: We check for "not disabled" so that if the API call fails, we play it
514 // safe and copy the executable anyway. 514 // safe and copy the executable anyway.
515 if (base::win::OSInfo::GetInstance()->wow64_status() != 515 if (base::win::GetWOW64Status() != base::win::WOW64_DISABLED) {
516 base::win::OSInfo::WOW64_DISABLED) {
517 install_list->AddMoveTreeWorkItem( 516 install_list->AddMoveTreeWorkItem(
518 src_path.Append(installer::kWowHelperExe).value(), 517 src_path.Append(installer::kWowHelperExe).value(),
519 target_path.Append(installer::kWowHelperExe).value(), 518 target_path.Append(installer::kWowHelperExe).value(),
520 temp_path.value()); 519 temp_path.value());
521 } 520 }
522 521
523 // In the past, we copied rather than moved for system level installs so that 522 // In the past, we copied rather than moved for system level installs so that
524 // the permissions of %ProgramFiles% would be picked up. Now that |temp_path| 523 // the permissions of %ProgramFiles% would be picked up. Now that |temp_path|
525 // is in %ProgramFiles% for system level installs (and in %LOCALAPPDATA% 524 // is in %ProgramFiles% for system level installs (and in %LOCALAPPDATA%
526 // otherwise), there is no need to do this. 525 // otherwise), there is no need to do this.
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 } else { 989 } else {
991 DCHECK(operation == REMOVE_COMMAND); 990 DCHECK(operation == REMOVE_COMMAND);
992 work_item_list->AddDeleteRegKeyWorkItem(installer_state.root_key(), 991 work_item_list->AddDeleteRegKeyWorkItem(installer_state.root_key(),
993 cmd_key)->set_log_message( 992 cmd_key)->set_log_message(
994 "removing quick-enable-cf command"); 993 "removing quick-enable-cf command");
995 } 994 }
996 } 995 }
997 } 996 }
998 997
999 } // namespace installer 998 } // namespace installer
OLDNEW
« no previous file with comments | « chrome/installer/gcapi/gcapi.cc ('k') | chrome/installer/util/google_chrome_distribution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698