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 "chrome_frame/registry_list_preferences_holder.h" | 5 #include "chrome_frame/registry_list_preferences_holder.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "base/win/registry.h" | 8 #include "base/win/registry.h" |
9 | 9 |
10 RegistryListPreferencesHolder::RegistryListPreferencesHolder() : valid_(false) { | 10 RegistryListPreferencesHolder::RegistryListPreferencesHolder() : valid_(false) { |
11 } | 11 } |
12 | 12 |
13 void RegistryListPreferencesHolder::Init(HKEY hive, | 13 void RegistryListPreferencesHolder::Init(HKEY hive, |
14 const wchar_t* registry_path, | 14 const wchar_t* registry_path, |
15 const wchar_t* list_name) { | 15 const wchar_t* list_name) { |
16 string16 list_path(registry_path); | 16 string16 list_path(registry_path); |
17 list_path += L"\\"; | 17 list_path += L"\\"; |
(...skipping 18 matching lines...) Expand all Loading... |
36 | 36 |
37 void RegistryListPreferencesHolder::AddStringForTesting( | 37 void RegistryListPreferencesHolder::AddStringForTesting( |
38 const string16& string) { | 38 const string16& string) { |
39 values_.push_back(string); | 39 values_.push_back(string); |
40 } | 40 } |
41 | 41 |
42 void RegistryListPreferencesHolder::ResetForTesting() { | 42 void RegistryListPreferencesHolder::ResetForTesting() { |
43 values_.clear(); | 43 values_.clear(); |
44 valid_ = false; | 44 valid_ = false; |
45 } | 45 } |
OLD | NEW |