summaryrefslogtreecommitdiffstats
path: root/content/common/child_process_host_impl.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-07 19:21:48 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-07 19:21:48 +0000
commita732916421eb01c3a06187bf3e077e8ce0dd5912 (patch)
tree4981b7c3ceb04be445f093c1a7689107725f736e /content/common/child_process_host_impl.cc
parent2dec8ec385e65c80571c5723dc572264a934b7c9 (diff)
downloadchromium_src-a732916421eb01c3a06187bf3e077e8ce0dd5912.zip
chromium_src-a732916421eb01c3a06187bf3e077e8ce0dd5912.tar.gz
chromium_src-a732916421eb01c3a06187bf3e077e8ce0dd5912.tar.bz2
Use base namespace for FilePath in chrome/common and content/common.
Review URL: https://codereview.chromium.org/12210058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181350 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/child_process_host_impl.cc')
-rw-r--r--content/common/child_process_host_impl.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/content/common/child_process_host_impl.cc b/content/common/child_process_host_impl.cc
index b88ca94..77d037c 100644
--- a/content/common/child_process_host_impl.cc
+++ b/content/common/child_process_host_impl.cc
@@ -38,25 +38,25 @@ namespace {
// path for feature "NP" would be
// ".../Chromium Helper NP.app/Contents/MacOS/Chromium Helper NP". The new
// path is returned.
-FilePath TransformPathForFeature(const FilePath& path,
+base::FilePath TransformPathForFeature(const base::FilePath& path,
const std::string& feature) {
std::string basename = path.BaseName().value();
- FilePath macos_path = path.DirName();
+ base::FilePath macos_path = path.DirName();
const char kMacOSName[] = "MacOS";
DCHECK_EQ(kMacOSName, macos_path.BaseName().value());
- FilePath contents_path = macos_path.DirName();
+ base::FilePath contents_path = macos_path.DirName();
const char kContentsName[] = "Contents";
DCHECK_EQ(kContentsName, contents_path.BaseName().value());
- FilePath helper_app_path = contents_path.DirName();
+ base::FilePath helper_app_path = contents_path.DirName();
const char kAppExtension[] = ".app";
std::string basename_app = basename;
basename_app.append(kAppExtension);
DCHECK_EQ(basename_app, helper_app_path.BaseName().value());
- FilePath root_path = helper_app_path.DirName();
+ base::FilePath root_path = helper_app_path.DirName();
std::string new_basename = basename;
new_basename.append(1, ' ');
@@ -64,7 +64,7 @@ FilePath TransformPathForFeature(const FilePath& path,
std::string new_basename_app = new_basename;
new_basename_app.append(kAppExtension);
- FilePath new_path = root_path.Append(new_basename_app)
+ base::FilePath new_path = root_path.Append(new_basename_app)
.Append(kContentsName)
.Append(kMacOSName)
.Append(new_basename);
@@ -85,8 +85,8 @@ ChildProcessHost* ChildProcessHost::Create(ChildProcessHostDelegate* delegate) {
}
// static
-FilePath ChildProcessHost::GetChildPath(int flags) {
- FilePath child_path;
+base::FilePath ChildProcessHost::GetChildPath(int flags) {
+ base::FilePath child_path;
child_path = CommandLine::ForCurrentProcess()->GetSwitchValuePath(
switches::kBrowserSubprocessPath);
@@ -98,7 +98,7 @@ FilePath ChildProcessHost::GetChildPath(int flags) {
// Valgrind executable, which then crashes. However, it's almost safe to
// assume that the updates won't happen while testing with Valgrind tools.
if (child_path.empty() && flags & CHILD_ALLOW_SELF && !RunningOnValgrind())
- child_path = FilePath(base::kProcSelfExe);
+ child_path = base::FilePath(base::kProcSelfExe);
#endif
// On most platforms, the child executable is the same as the current