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

Unified Diff: chrome/browser/extensions/component_loader.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/component_loader.cc
diff --git a/chrome/browser/extensions/component_loader.cc b/chrome/browser/extensions/component_loader.cc
index 82a6883abc001d7a8d1f262e49bf4684a8a259ff..82f4d809ebdbeb94b92ed98fdf28f838e93669cb 100644
--- a/chrome/browser/extensions/component_loader.cc
+++ b/chrome/browser/extensions/component_loader.cc
@@ -150,8 +150,7 @@ std::string ComponentLoader::Add(const DictionaryValue* parsed_manifest,
}
std::string ComponentLoader::AddOrReplace(const base::FilePath& path) {
- base::FilePath absolute_path = path;
- file_util::AbsolutePath(&absolute_path);
+ base::FilePath absolute_path = base::MakeAbsoluteFilePath(path);
std::string error;
scoped_ptr<DictionaryValue> manifest(
extension_file_util::LoadManifest(absolute_path, &error));

Powered by Google App Engine
This is Rietveld 408576698