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

Unified Diff: content/renderer/gpu/gpu_benchmarking_extension.cc

Issue 10832379: Initialize FilePath with FilePath::FilePath(string) instead of FilePath::AppendASCII(string). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/gpu_benchmarking_extension.cc
===================================================================
--- content/renderer/gpu/gpu_benchmarking_extension.cc (revision 151503)
+++ content/renderer/gpu/gpu_benchmarking_extension.cc (working copy)
@@ -224,8 +224,8 @@
if (!benchmark_support)
return v8::Undefined();
- FilePath dirpath;
- dirpath = dirpath.AppendASCII(*dirname);
+ FilePath dirpath(FilePath::StringType(*dirname,
+ *dirname + dirname.length()));
if (!file_util::CreateDirectory(dirpath) ||
!file_util::PathIsWritable(dirpath)) {
std::string msg("Path is not writable: ");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698