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

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

Issue 18286004: Move PathExists to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « chrome/installer/setup/install_unittest.cc ('k') | chrome/installer/setup/setup_main.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) 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
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
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
OLDNEW
« no previous file with comments | « chrome/installer/setup/install_unittest.cc ('k') | chrome/installer/setup/setup_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698