OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/thread_restrictions.h" | 10 #include "base/threading/thread_restrictions.h" |
11 | 11 |
12 #pragma comment(lib, "shlwapi.lib") // for SHDeleteKey | 12 #pragma comment(lib, "shlwapi.lib") // for SHDeleteKey |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 namespace win { | 15 namespace win { |
16 | 16 |
17 RegistryValueIterator::RegistryValueIterator(HKEY root_key, | 17 RegistryValueIterator::RegistryValueIterator(HKEY root_key, |
18 const wchar_t* folder_key) { | 18 const wchar_t* folder_key) { |
19 base::ThreadRestrictions::AssertIOAllowed(); | 19 base::ThreadRestrictions::AssertIOAllowed(); |
20 | 20 |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 if (WaitForSingleObject(watch_event_, 0) == WAIT_OBJECT_0) { | 407 if (WaitForSingleObject(watch_event_, 0) == WAIT_OBJECT_0) { |
408 StartWatching(); | 408 StartWatching(); |
409 return true; | 409 return true; |
410 } | 410 } |
411 } | 411 } |
412 return false; | 412 return false; |
413 } | 413 } |
414 | 414 |
415 } // namespace win | 415 } // namespace win |
416 } // namespace base | 416 } // namespace base |
OLD | NEW |