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

Unified Diff: trunk/src/content/ppapi_plugin/ppapi_plugin_main.cc

Issue 284333002: Revert 270872 "Move all callers of GetHomeDir() to PathService::..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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
« no previous file with comments | « trunk/src/chromeos/chromeos_switches.cc ('k') | trunk/src/crypto/nss_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/content/ppapi_plugin/ppapi_plugin_main.cc
===================================================================
--- trunk/src/content/ppapi_plugin/ppapi_plugin_main.cc (revision 270950)
+++ trunk/src/content/ppapi_plugin/ppapi_plugin_main.cc (working copy)
@@ -2,13 +2,10 @@
// 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"
@@ -104,9 +101,7 @@
#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.
- base::FilePath homedir;
- PathService::Get(base::DIR_HOME, &homedir);
- setenv("HOME", homedir.value().c_str(), 1);
+ setenv("HOME", base::GetHomeDir().value().c_str(), 1);
#endif
base::MessageLoop main_message_loop;
« no previous file with comments | « trunk/src/chromeos/chromeos_switches.cc ('k') | trunk/src/crypto/nss_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698