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

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: git try Created 7 years, 8 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 cfad60e49fe7db51c70cbae3a6627dd6766d4360..4d26d3b4b0b86c3897e54e61cdb1c4390b9b9f1f 100644
--- a/chrome/browser/extensions/extension_browsertest.cc
+++ b/chrome/browser/extensions/extension_browsertest.cc
@@ -86,8 +86,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