| OLD | NEW |
| 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 // 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 <oaidl.h> | 10 #include <oaidl.h> |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 install_list->AddMoveTreeWorkItem( | 511 install_list->AddMoveTreeWorkItem( |
| 512 src_path.Append(installer::kWowHelperExe).value(), | 512 src_path.Append(installer::kWowHelperExe).value(), |
| 513 target_path.Append(installer::kWowHelperExe).value(), | 513 target_path.Append(installer::kWowHelperExe).value(), |
| 514 temp_path.value(), | 514 temp_path.value(), |
| 515 WorkItem::ALWAYS_MOVE); | 515 WorkItem::ALWAYS_MOVE); |
| 516 } | 516 } |
| 517 | 517 |
| 518 // Install kVisualElementsManifest if it is present in |src_path|. No need to | 518 // Install kVisualElementsManifest if it is present in |src_path|. No need to |
| 519 // make this a conditional work item as if the file is not there now, it will | 519 // make this a conditional work item as if the file is not there now, it will |
| 520 // never be. | 520 // never be. |
| 521 if (file_util::PathExists( | 521 if (base::PathExists( |
| 522 src_path.Append(installer::kVisualElementsManifest))) { | 522 src_path.Append(installer::kVisualElementsManifest))) { |
| 523 install_list->AddMoveTreeWorkItem( | 523 install_list->AddMoveTreeWorkItem( |
| 524 src_path.Append(installer::kVisualElementsManifest).value(), | 524 src_path.Append(installer::kVisualElementsManifest).value(), |
| 525 target_path.Append(installer::kVisualElementsManifest).value(), | 525 target_path.Append(installer::kVisualElementsManifest).value(), |
| 526 temp_path.value(), | 526 temp_path.value(), |
| 527 WorkItem::ALWAYS_MOVE); | 527 WorkItem::ALWAYS_MOVE); |
| 528 } else { | 528 } else { |
| 529 // We do not want to have an old VisualElementsManifest pointing to an old | 529 // We do not want to have an old VisualElementsManifest pointing to an old |
| 530 // version directory. Delete it as there wasn't a new one to replace it. | 530 // version directory. Delete it as there wasn't a new one to replace it. |
| 531 install_list->AddDeleteTreeWorkItem( | 531 install_list->AddDeleteTreeWorkItem( |
| (...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1712 if (installer_state.system_install()) | 1712 if (installer_state.system_install()) |
| 1713 cmd_line.AppendSwitch(switches::kSystemLevel); | 1713 cmd_line.AppendSwitch(switches::kSystemLevel); |
| 1714 AppCommand cmd(cmd_line.GetCommandLineString()); | 1714 AppCommand cmd(cmd_line.GetCommandLineString()); |
| 1715 cmd.set_sends_pings(true); | 1715 cmd.set_sends_pings(true); |
| 1716 cmd.set_is_web_accessible(true); | 1716 cmd.set_is_web_accessible(true); |
| 1717 cmd.AddWorkItems(installer_state.root_key(), cmd_key, work_item_list); | 1717 cmd.AddWorkItems(installer_state.root_key(), cmd_key, work_item_list); |
| 1718 } | 1718 } |
| 1719 } | 1719 } |
| 1720 | 1720 |
| 1721 } // namespace installer | 1721 } // namespace installer |
| OLD | NEW |