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

Unified Diff: chrome/common/extensions/extension_file_util_unittest.cc

Issue 13196006: Move path functions from file_util to FilePath object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try fixes, merge 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/common/extensions/extension_file_util_unittest.cc
diff --git a/chrome/common/extensions/extension_file_util_unittest.cc b/chrome/common/extensions/extension_file_util_unittest.cc
index cb9260f49939cf66823294c659a3b82ef478fe00..0ad15008b1e97694be9a355e72fd5c5700f59d47 100644
--- a/chrome/common/extensions/extension_file_util_unittest.cc
+++ b/chrome/common/extensions/extension_file_util_unittest.cc
@@ -305,7 +305,8 @@ TEST_F(ExtensionFileUtilTest, ExtensionResourceURLToFilePath) {
base::FilePath root_path;
ASSERT_TRUE(file_util::CreateNewTempDirectory(
FILE_PATH_LITERAL(""), &root_path));
- ASSERT_TRUE(file_util::AbsolutePath(&root_path));
+ root_path = root_path.AsAbsolute();
+ ASSERT_FALSE(root_path.empty());
base::FilePath api_path = root_path.Append(FILE_PATH_LITERAL("apiname"));
ASSERT_TRUE(file_util::CreateDirectory(api_path));

Powered by Google App Engine
This is Rietveld 408576698