Index: content/ppapi_plugin/ppapi_plugin_main.cc |
diff --git a/content/ppapi_plugin/ppapi_plugin_main.cc b/content/ppapi_plugin/ppapi_plugin_main.cc |
index ab32b665346b4b57ce4f4af44574e567cbbbc34c..81ca51edeb7cea630c793697f8bdc233f558e7f9 100644 |
--- a/content/ppapi_plugin/ppapi_plugin_main.cc |
+++ b/content/ppapi_plugin/ppapi_plugin_main.cc |
@@ -2,10 +2,13 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "base/base_paths.h" |
#include "base/command_line.h" |
#include "base/debug/debugger.h" |
+#include "base/files/file_path.h" |
#include "base/i18n/rtl.h" |
#include "base/message_loop/message_loop.h" |
+#include "base/path_service.h" |
#include "base/threading/platform_thread.h" |
#include "build/build_config.h" |
#include "content/child/child_process.h" |
@@ -101,7 +104,9 @@ int PpapiPluginMain(const MainFunctionParams& parameters) { |
#if defined(OS_CHROMEOS) |
// Specifies $HOME explicitly because some plugins rely on $HOME but |
// no other part of Chrome OS uses that. See crbug.com/335290. |
- setenv("HOME", base::GetHomeDir().value().c_str(), 1); |
+ base::FilePath homedir; |
+ PathService::Get(base::DIR_HOME, &homedir); |
+ setenv("HOME", homedir.value().c_str(), 1); |
#endif |
base::MessageLoop main_message_loop; |