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 #include "base/win/registry.h" | 5 #include "base/win/registry.h" |
6 | 6 |
7 #include <shlwapi.h> | 7 #include <shlwapi.h> |
8 #include <algorithm> | 8 #include <algorithm> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/threading/thread_restrictions.h" | 12 #include "base/threading/thread_restrictions.h" |
13 | 13 |
14 #pragma comment(lib, "shlwapi.lib") // for SHDeleteKey | 14 #pragma comment(lib, "shlwapi.lib") // for SHDeleteKey |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 namespace win { | 17 namespace win { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 // RegEnumValue() reports the number of characters from the name that were | 21 // RegEnumValue() reports the number of characters from the name that were |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 if (ERROR_SUCCESS == r) | 455 if (ERROR_SUCCESS == r) |
456 return true; | 456 return true; |
457 } | 457 } |
458 | 458 |
459 name_[0] = '\0'; | 459 name_[0] = '\0'; |
460 return false; | 460 return false; |
461 } | 461 } |
462 | 462 |
463 } // namespace win | 463 } // namespace win |
464 } // namespace base | 464 } // namespace base |
OLD | NEW |