summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
Diffstat (limited to 'remoting')
-rw-r--r--remoting/host/branding.cc4
-rw-r--r--remoting/host/setup/daemon_controller_delegate_linux.cc7
2 files changed, 7 insertions, 4 deletions
diff --git a/remoting/host/branding.cc b/remoting/host/branding.cc
index 840e982..fe95479 100644
--- a/remoting/host/branding.cc
+++ b/remoting/host/branding.cc
@@ -4,7 +4,7 @@
#include "remoting/host/branding.h"
-#include "base/file_util.h"
+#include "base/base_paths.h"
#include "base/path_service.h"
namespace {
@@ -46,7 +46,7 @@ base::FilePath GetConfigDir() {
#elif defined(OS_MACOSX)
PathService::Get(base::DIR_APP_DATA, &app_data_dir);
#else
- app_data_dir = base::GetHomeDir();
+ PathService::Get(base::DIR_HOME, &app_data_dir);
#endif
return app_data_dir.Append(kConfigDir);
diff --git a/remoting/host/setup/daemon_controller_delegate_linux.cc b/remoting/host/setup/daemon_controller_delegate_linux.cc
index 427a572..4988065 100644
--- a/remoting/host/setup/daemon_controller_delegate_linux.cc
+++ b/remoting/host/setup/daemon_controller_delegate_linux.cc
@@ -6,6 +6,7 @@
#include <unistd.h>
+#include "base/base_paths.h"
#include "base/basictypes.h"
#include "base/bind.h"
#include "base/command_line.h"
@@ -16,6 +17,7 @@
#include "base/json/json_writer.h"
#include "base/logging.h"
#include "base/md5.h"
+#include "base/path_service.h"
#include "base/process/kill.h"
#include "base/process/launch.h"
#include "base/process/process_handle.h"
@@ -55,8 +57,9 @@ std::string GetMd5(const std::string& value) {
base::FilePath GetConfigPath() {
std::string filename = "host#" + GetMd5(net::GetHostName()) + ".json";
- return base::GetHomeDir().
- Append(".config/chrome-remote-desktop").Append(filename);
+ base::FilePath homedir;
+ PathService::Get(base::DIR_HOME, &homedir);
+ return homedir.Append(".config/chrome-remote-desktop").Append(filename);
}
bool GetScriptPath(base::FilePath* result) {