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

Unified Diff: content/shell/shell_content_browser_client.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: content/shell/shell_content_browser_client.cc
diff --git a/content/shell/shell_content_browser_client.cc b/content/shell/shell_content_browser_client.cc
index 163027fae217a3965ba1c61cd9ddd3db0494bec1..193d8ab85ef356b7e20ea7499c8a9e02201f2034 100644
--- a/content/shell/shell_content_browser_client.cc
+++ b/content/shell/shell_content_browser_client.cc
@@ -78,9 +78,9 @@ ShellContentBrowserClient::ShellContentBrowserClient()
if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree))
return;
webkit_source_dir_ = GetWebKitRootDirFilePath();
- base::FilePath dictionary_file_path = GetChromiumRootDirFilePath().Append(
- FILE_PATH_LITERAL("third_party/hyphen/hyph_en_US.dic"));
- file_util::AbsolutePath(&dictionary_file_path);
+ base::FilePath dictionary_file_path = base::MakeAbsoluteFilePath(
+ GetChromiumRootDirFilePath().Append(
+ FILE_PATH_LITERAL("third_party/hyphen/hyph_en_US.dic")));
hyphen_dictionary_file_ = base::CreatePlatformFile(dictionary_file_path,
base::PLATFORM_FILE_READ |
base::PLATFORM_FILE_OPEN,

Powered by Google App Engine
This is Rietveld 408576698