Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Side by Side Diff: chrome_frame/registry_list_preferences_holder.h

Issue 113143006: Add base:: to string16 in chrome_frame/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/policy_settings.cc ('k') | chrome_frame/registry_list_preferences_holder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // A utility class for accessing and caching registry preferences that take 5 // A utility class for accessing and caching registry preferences that take
6 // the form of lists of strings. 6 // the form of lists of strings.
7 // TODO(robertshield): Use the RegistryWatcher stuff to keep this list up to 7 // TODO(robertshield): Use the RegistryWatcher stuff to keep this list up to
8 // date. 8 // date.
9 9
10 #ifndef CHROME_FRAME_REGISTRY_LIST_PREFERENCES_HOLDER_H_ 10 #ifndef CHROME_FRAME_REGISTRY_LIST_PREFERENCES_HOLDER_H_
(...skipping 12 matching lines...) Expand all
23 // Initializes the RegistryListPreferencesHolder using the values stored 23 // Initializes the RegistryListPreferencesHolder using the values stored
24 // under the key |list_name| stored at |registry_path| under |hive|. 24 // under the key |list_name| stored at |registry_path| under |hive|.
25 void Init(HKEY hive, 25 void Init(HKEY hive,
26 const wchar_t* registry_path, 26 const wchar_t* registry_path,
27 const wchar_t* list_name); 27 const wchar_t* list_name);
28 28
29 bool Valid() const { return valid_; } 29 bool Valid() const { return valid_; }
30 30
31 // Returns true iff |string| matches any of the strings in values_, using the 31 // Returns true iff |string| matches any of the strings in values_, using the
32 // matching logic in base's MatchPattern(). 32 // matching logic in base's MatchPattern().
33 bool ListMatches(const string16& string) const; 33 bool ListMatches(const base::string16& string) const;
34 34
35 // Manually add a string to values_ for testing purposes. 35 // Manually add a string to values_ for testing purposes.
36 void AddStringForTesting(const string16& string); 36 void AddStringForTesting(const base::string16& string);
37 37
38 // Reset the holder causing it to be re-initialized, for testing purposes 38 // Reset the holder causing it to be re-initialized, for testing purposes
39 // only. 39 // only.
40 // TODO(robertshield): Remove this once the RegistryWatcher stuff is wired up. 40 // TODO(robertshield): Remove this once the RegistryWatcher stuff is wired up.
41 void ResetForTesting(); 41 void ResetForTesting();
42 42
43 private: 43 private:
44 std::vector<string16> values_; 44 std::vector<base::string16> values_;
45 bool valid_; 45 bool valid_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(RegistryListPreferencesHolder); 47 DISALLOW_COPY_AND_ASSIGN(RegistryListPreferencesHolder);
48 }; 48 };
49 49
50 #endif // CHROME_FRAME_REGISTRY_LIST_PREFERENCES_HOLDER_H_ 50 #endif // CHROME_FRAME_REGISTRY_LIST_PREFERENCES_HOLDER_H_
OLDNEW
« no previous file with comments | « chrome_frame/policy_settings.cc ('k') | chrome_frame/registry_list_preferences_holder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698