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

Unified Diff: components/policy/core/common/policy_loader_win_unittest.cc

Issue 2317123002: c/browser, c/common, components O-P: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Just rebased 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: components/policy/core/common/policy_loader_win_unittest.cc
diff --git a/components/policy/core/common/policy_loader_win_unittest.cc b/components/policy/core/common/policy_loader_win_unittest.cc
index e9e9191c5374e45f255b6119f1403076346f9d05..d24aee7dec32ae3cc46a3e30cb015545ffd5e7af 100644
--- a/components/policy/core/common/policy_loader_win_unittest.cc
+++ b/components/policy/core/common/policy_loader_win_unittest.cc
@@ -473,13 +473,14 @@ PRegTestHarness::~PRegTestHarness() {}
void PRegTestHarness::SetUp() {
base::win::SetDomainStateForTesting(false);
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
- preg_file_path_ = temp_dir_.path().Append(PolicyLoaderWin::kPRegFileName);
+ preg_file_path_ = temp_dir_.GetPath().Append(PolicyLoaderWin::kPRegFileName);
ASSERT_TRUE(base::WriteFile(preg_file_path_,
preg_parser::kPRegFileHeader,
arraysize(preg_parser::kPRegFileHeader)));
memset(&gpo_, 0, sizeof(GROUP_POLICY_OBJECT));
- gpo_.lpFileSysPath = const_cast<wchar_t*>(temp_dir_.path().value().c_str());
+ gpo_.lpFileSysPath =
+ const_cast<wchar_t*>(temp_dir_.GetPath().value().c_str());
}
ConfigurationPolicyProvider* PRegTestHarness::CreateProvider(

Powered by Google App Engine
This is Rietveld 408576698