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

Unified Diff: chrome/test/gpu/gpu_pixel_browsertest.cc

Issue 13196006: Move path functions from file_util to FilePath object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: chrome/test/gpu/gpu_pixel_browsertest.cc
diff --git a/chrome/test/gpu/gpu_pixel_browsertest.cc b/chrome/test/gpu/gpu_pixel_browsertest.cc
index 71d9478d266b6e6eae33687ae5e4e511292fd64b..203ea48c5989ac4f3999faaae35c42e08f866cc5 100644
--- a/chrome/test/gpu/gpu_pixel_browsertest.cc
+++ b/chrome/test/gpu/gpu_pixel_browsertest.cc
@@ -58,8 +58,8 @@ const char kReferenceDir[] = "reference-dir";
// should have been encoded using |gfx::PNGCodec::Encode|.
bool ReadPNGFile(const base::FilePath& file_path, SkBitmap* bitmap) {
DCHECK(bitmap);
- base::FilePath abs_path(file_path);
- if (!file_util::AbsolutePath(&abs_path))
+ base::FilePath abs_path(file_path).AsAbsolute();
brettw 2013/03/30 04:19:38 Fix me
+ if (abs_path.empty())
return false;
std::string png_data;

Powered by Google App Engine
This is Rietveld 408576698