From 5ac670a3a8c4e3e2f2b7ed3ad1190f9ed34dd512 Mon Sep 17 00:00:00 2001 From: "tommi@chromium.org" Date: Mon, 4 Oct 2010 23:07:40 +0000 Subject: 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 --- chrome_frame/utils.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'chrome_frame/utils.cc') 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* values) { + DCHECK(values); + RegistryValueIterator url_list(parent_key, sub_key_name); + while (url_list.Valid()) { + values->push_back(url_list.Value()); + ++url_list; + } +} + -- cgit v1.1