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

Unified Diff: webkit/plugins/npapi/plugin_list_posix.cc

Issue 13196006: Move path functions from file_util to FilePath object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: webkit/plugins/npapi/plugin_list_posix.cc
diff --git a/webkit/plugins/npapi/plugin_list_posix.cc b/webkit/plugins/npapi/plugin_list_posix.cc
index 175bc4ddc730a0893132f5829b0784d1f88dea32..7211e9782af8ffb1ce6254d001bb813853fe9378 100644
--- a/webkit/plugins/npapi/plugin_list_posix.cc
+++ b/webkit/plugins/npapi/plugin_list_posix.cc
@@ -216,10 +216,8 @@ void PluginList::GetPluginsInDir(
// Java doesn't like being loaded through a symlink, since it uses
// its path to find dependent data files.
- // file_util::AbsolutePath calls through to realpath(), which resolves
- // symlinks.
- base::FilePath orig_path = path;
- file_util::AbsolutePath(&path);
+ // AsAbsolute calls through to realpath(), which resolves symlinks.
+ base::FilePath orig_path = path.AsAbsolute();
LOG_IF(ERROR, PluginList::DebugPluginLoading())
<< "Resolved " << orig_path.value() << " -> " << path.value();

Powered by Google App Engine
This is Rietveld 408576698