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

Unified Diff: chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc

Issue 2318023002: //chrome/browser/chromeos: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Address comment and also remove non-trivial cases Created 4 years, 3 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: chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc
diff --git a/chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc b/chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc
index 8a8751bd20f8221f03377f9ace9628ab69a94e56..71d8b4762bb0cba11ec4ca7365ba37ae53c2d263 100644
--- a/chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc
+++ b/chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc
@@ -526,7 +526,7 @@ void DeviceLocalAccountPolicyExtensionCacheTest::SetUp() {
ASSERT_TRUE(cache_root_dir_.CreateUniqueTempDir());
cache_root_dir_override_.reset(new base::ScopedPathOverride(
chromeos::DIR_DEVICE_LOCAL_ACCOUNT_EXTENSIONS,
- cache_root_dir_.path()));
+ cache_root_dir_.GetPath()));
cache_dir_1_ = GetCacheDirectoryForAccountID(kAccount1);
cache_dir_2_ = GetCacheDirectoryForAccountID(kAccount2);
@@ -539,8 +539,8 @@ void DeviceLocalAccountPolicyExtensionCacheTest::SetUp() {
base::FilePath DeviceLocalAccountPolicyExtensionCacheTest::
GetCacheDirectoryForAccountID(const std::string& account_id) {
- return cache_root_dir_.path().Append(base::HexEncode(account_id.c_str(),
- account_id.size()));
+ return cache_root_dir_.GetPath().Append(
+ base::HexEncode(account_id.c_str(), account_id.size()));
}
// Verifies that during startup, orphaned cache directories are deleted,

Powered by Google App Engine
This is Rietveld 408576698