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

Unified Diff: trunk/src/rlz/chromeos/lib/rlz_value_store_chromeos.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/remoting/host/setup/daemon_controller_delegate_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/rlz/chromeos/lib/rlz_value_store_chromeos.cc
===================================================================
--- trunk/src/rlz/chromeos/lib/rlz_value_store_chromeos.cc (revision 270950)
+++ trunk/src/rlz/chromeos/lib/rlz_value_store_chromeos.cc (working copy)
@@ -4,13 +4,11 @@
#include "rlz/chromeos/lib/rlz_value_store_chromeos.h"
-#include "base/base_paths.h"
#include "base/file_util.h"
#include "base/files/important_file_writer.h"
#include "base/json/json_file_value_serializer.h"
#include "base/json/json_string_value_serializer.h"
#include "base/logging.h"
-#include "base/path_service.h"
#include "base/sequenced_task_runner.h"
#include "base/strings/string_number_conversions.h"
#include "base/values.h"
@@ -44,19 +42,15 @@
// Returns file path of the RLZ storage.
base::FilePath GetRlzStorePath() {
- base::FilePath homedir;
- PathService::Get(base::DIR_HOME, &homedir);
return g_testing_rlz_store_path_.empty() ?
- homedir.Append(kRLZDataFileName) :
+ base::GetHomeDir().Append(kRLZDataFileName) :
g_testing_rlz_store_path_.Append(kRLZDataFileName);
}
// Returns file path of the RLZ storage lock file.
base::FilePath GetRlzStoreLockPath() {
- base::FilePath homedir;
- PathService::Get(base::DIR_HOME, &homedir);
return g_testing_rlz_store_path_.empty() ?
- homedir.Append(kRLZLockFileName) :
+ base::GetHomeDir().Append(kRLZLockFileName) :
g_testing_rlz_store_path_.Append(kRLZLockFileName);
}
« no previous file with comments | « trunk/src/remoting/host/setup/daemon_controller_delegate_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698