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

Unified Diff: content/browser/ppapi_plugin_process_host.cc

Issue 200473002: Move all callers of GetHomeDir() to PathService::Get(base::DIR_HOME). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 6 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/browser/ppapi_plugin_process_host.cc
diff --git a/content/browser/ppapi_plugin_process_host.cc b/content/browser/ppapi_plugin_process_host.cc
index 39c6bc30205244703b847bb2f21fa11dcab55373..a8e0c8d78451fe610b7bd458f81443d7f9ac4ba6 100644
--- a/content/browser/ppapi_plugin_process_host.cc
+++ b/content/browser/ppapi_plugin_process_host.cc
@@ -6,10 +6,12 @@
#include <string>
+#include "base/base_paths.h"
#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/metrics/field_trial.h"
+#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
#include "content/browser/browser_child_process_host_impl.h"
#include "content/browser/plugin_service_impl.h"
@@ -306,6 +308,13 @@ bool PpapiPluginProcessHost::Init(const PepperPluginInfo& info) {
: switches::kPpapiPluginProcess);
cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id);
+#if defined(OS_CHROMEOS)
+ // On Chrome OS need to pass primary user homedir.
Will Drewry 2014/04/08 15:55:04 What does PPAPI use the home dir for? What sort o
Nikita (slow) 2014/04/08 16:40:08 This doesn't change how it is implemented right no
+ base::FilePath homedir;
+ PathService::Get(base::DIR_HOME, &homedir);
+ cmd_line->AppendSwitchASCII(switches::kHomedir, homedir.value().c_str());
+#endif
+
// These switches are forwarded to both plugin and broker pocesses.
static const char* kCommonForwardSwitches[] = {
switches::kVModule

Powered by Google App Engine
This is Rietveld 408576698