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

Unified Diff: content/common/sandbox_win.cc

Issue 13196006: Move path functions from file_util to FilePath object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move AsAbsolute back out of FilePath Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/common/sandbox_win.cc
diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc
index cc29215288e16e6940abc87a089b3e8d52b52fb1..5906b46e9f465b019f5c8359c3dd8889ea3480e5 100644
--- a/content/common/sandbox_win.cc
+++ b/content/common/sandbox_win.cc
@@ -121,10 +121,8 @@ bool AddDirectory(int path, const wchar_t* sub_dir, bool children,
if (!PathService::Get(path, &directory))
return false;
- if (sub_dir) {
- directory = directory.Append(sub_dir);
- file_util::AbsolutePath(&directory);
- }
+ if (sub_dir)
+ directory = base::MakeAbsoluteFilePath(directory.Append(sub_dir));
sandbox::ResultCode result;
result = policy->AddRule(sandbox::TargetPolicy::SUBSYS_FILES, access,

Powered by Google App Engine
This is Rietveld 408576698