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

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: 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/component_loader.cc
diff --git a/chrome/browser/extensions/component_loader.cc b/chrome/browser/extensions/component_loader.cc
index 5749f13cd53d7361f8eb41757674bb8eddb7ae8d..8d94cfae51aff50a42f4b668a1f48a219c14c120 100644
--- a/chrome/browser/extensions/component_loader.cc
+++ b/chrome/browser/extensions/component_loader.cc
@@ -149,8 +149,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