OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Library functions related to the OEM Deal Confirmation Code. | 5 // Library functions related to the OEM Deal Confirmation Code. |
6 | 6 |
7 #include "rlz/win/lib/machine_deal.h" | 7 #include "rlz/win/lib/machine_deal.h" |
8 | 8 |
9 #include <windows.h> | 9 #include <windows.h> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/string_split.h" | |
15 #include "base/string_util.h" | 14 #include "base/string_util.h" |
16 #include "base/stringprintf.h" | 15 #include "base/stringprintf.h" |
| 16 #include "base/strings/string_split.h" |
17 #include "base/win/registry.h" | 17 #include "base/win/registry.h" |
18 #include "rlz/lib/assert.h" | 18 #include "rlz/lib/assert.h" |
19 #include "rlz/lib/lib_values.h" | 19 #include "rlz/lib/lib_values.h" |
20 #include "rlz/win/lib/lib_mutex.h" | 20 #include "rlz/win/lib/lib_mutex.h" |
21 #include "rlz/win/lib/registry_util.h" | 21 #include "rlz/win/lib/registry_util.h" |
22 #include "rlz/win/lib/rlz_value_store_registry.h" | 22 #include "rlz/win/lib/rlz_value_store_registry.h" |
23 | 23 |
24 const wchar_t kDccValueName[] = L"DCC"; | 24 const wchar_t kDccValueName[] = L"DCC"; |
25 | 25 |
26 namespace { | 26 namespace { |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 DWORD dcc_size = arraysize(dcc); | 291 DWORD dcc_size = arraysize(dcc); |
292 if (dcc_key.ReadValue(kDccValueName, dcc, &dcc_size, NULL) == ERROR_SUCCESS) { | 292 if (dcc_key.ReadValue(kDccValueName, dcc, &dcc_size, NULL) == ERROR_SUCCESS) { |
293 ASSERT_STRING("MachineDealCode::Clear: Could not delete the DCC value."); | 293 ASSERT_STRING("MachineDealCode::Clear: Could not delete the DCC value."); |
294 return false; | 294 return false; |
295 } | 295 } |
296 | 296 |
297 return true; | 297 return true; |
298 } | 298 } |
299 | 299 |
300 } // namespace rlz_lib | 300 } // namespace rlz_lib |
OLD | NEW |