| 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 52bd22410862d96b226919446c3d273261734929..a932199aa0ef0f4a6c305874ff45537a5e335da3 100644
|
| --- a/components/policy/core/common/policy_loader_win_unittest.cc
|
| +++ b/components/policy/core/common/policy_loader_win_unittest.cc
|
| @@ -589,10 +589,9 @@ void PRegTestHarness::AppendRecordToPRegFile(const base::string16& path,
|
| buffer.insert(buffer.end(), data, data + size);
|
| AppendChars(&buffer, L"]");
|
|
|
| - ASSERT_TRUE(base::AppendToFile(
|
| - preg_file_path_,
|
| - reinterpret_cast<const char*>(vector_as_array(&buffer)),
|
| - buffer.size()));
|
| + ASSERT_TRUE(base::AppendToFile(preg_file_path_,
|
| + reinterpret_cast<const char*>(buffer.data()),
|
| + buffer.size()));
|
| }
|
|
|
| void PRegTestHarness::AppendDWORDToPRegFile(const base::string16& path,
|
| @@ -613,7 +612,7 @@ void PRegTestHarness::AppendStringToPRegFile(const base::string16& path,
|
| data.push_back(base::ByteSwapToLE16(L'\0'));
|
|
|
| AppendRecordToPRegFile(path, key, REG_SZ, data.size() * sizeof(base::char16),
|
| - reinterpret_cast<uint8*>(vector_as_array(&data)));
|
| + reinterpret_cast<uint8*>(data.data()));
|
| }
|
|
|
| void PRegTestHarness::AppendPolicyToPRegFile(const base::string16& path,
|
|
|