Index: content/common/sandbox_win.cc |
diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc |
index cc29215288e16e6940abc87a089b3e8d52b52fb1..aef7c3b4c9347035b5594901593fbbeb6a4c0d00 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 = directory.Append(sub_dir).AsAbsolute(); |
sandbox::ResultCode result; |
result = policy->AddRule(sandbox::TargetPolicy::SUBSYS_FILES, access, |