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

Unified Diff: chrome/browser/extensions/extension_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: 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: chrome/browser/extensions/extension_browsertest.cc
diff --git a/chrome/browser/extensions/extension_browsertest.cc b/chrome/browser/extensions/extension_browsertest.cc
index bb85609afb90eaf7e71b6e1ff536824a54c521fc..20591abc1132fba7588ce0e68df451a77d570dbd 100644
--- a/chrome/browser/extensions/extension_browsertest.cc
+++ b/chrome/browser/extensions/extension_browsertest.cc
@@ -82,8 +82,8 @@ Profile* ExtensionBrowserTest::profile() {
// static
const Extension* ExtensionBrowserTest::GetExtensionByPath(
const ExtensionSet* extensions, const base::FilePath& path) {
- base::FilePath extension_path = path;
- EXPECT_TRUE(file_util::AbsolutePath(&extension_path));
+ base::FilePath extension_path = base::MakeAbsoluteFilePath(path);
+ EXPECT_TRUE(!extension_path.empty());
for (ExtensionSet::const_iterator iter = extensions->begin();
iter != extensions->end(); ++iter) {
if ((*iter)->path() == extension_path) {

Powered by Google App Engine
This is Rietveld 408576698