summaryrefslogtreecommitdiffstats
path: root/chrome_frame/utils.cc
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-04 23:07:40 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-04 23:07:40 +0000
commit5ac670a3a8c4e3e2f2b7ed3ad1190f9ed34dd512 (patch)
treecff9275bd93bc02c09e2d9836a82b086745a9852 /chrome_frame/utils.cc
parent10da830b7fe028f85cf2167fadb64852cfe526ee (diff)
downloadchromium_src-5ac670a3a8c4e3e2f2b7ed3ad1190f9ed34dd512.zip
chromium_src-5ac670a3a8c4e3e2f2b7ed3ad1190f9ed34dd512.tar.gz
chromium_src-5ac670a3a8c4e3e2f2b7ed3ad1190f9ed34dd512.tar.bz2
Policy support for being able to specify a list of content types that Chrome Frame should handle.
TEST=This adds a new policy list for Chrome Frame, "ChromeFrameContentTypes", which can be used to specify a list of content types that should always be rendered in Chrome Frame. BUG=56543 Review URL: http://codereview.chromium.org/3611002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61432 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/utils.cc')
-rw-r--r--chrome_frame/utils.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome_frame/utils.cc b/chrome_frame/utils.cc
index ba621a2..ec631bd 100644
--- a/chrome_frame/utils.cc
+++ b/chrome_frame/utils.cc
@@ -1515,3 +1515,13 @@ void WaitWithMessageLoop(HANDLE* handles, int count, DWORD timeout) {
}
}
+void EnumerateKeyValues(HKEY parent_key, const wchar_t* sub_key_name,
+ std::vector<std::wstring>* values) {
+ DCHECK(values);
+ RegistryValueIterator url_list(parent_key, sub_key_name);
+ while (url_list.Valid()) {
+ values->push_back(url_list.Value());
+ ++url_list;
+ }
+}
+