Skip to content
Snippets Groups Projects
Commit 89157f2b authored by avi@chromium.org's avatar avi@chromium.org
Browse files

Policy refresh hits the registry (an I/O operation) on the main thread.

BUG=66453
TEST=none

Review URL: http://codereview.chromium.org/5762002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69131 0039d316-1c4b-4281-b951-d872f2087c98
parent 75106d77
No related merge requests found
......@@ -15,6 +15,7 @@
#include "base/string_piece.h"
#include "base/string_util.h"
#include "base/sys_string_conversions.h"
#include "base/thread_restrictions.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "base/win/registry.h"
......@@ -241,6 +242,10 @@ bool ConfigurationPolicyProviderWin::GetRegistryPolicyInteger(
bool ConfigurationPolicyProviderWin::Provide(
ConfigurationPolicyStoreInterface* store) {
// This function calls GetRegistryPolicy* which hit up the registry. Those
// are I/O functions not allowed to be called on the main thread.
// http://crbug.com/66453
// base::ThreadRestrictions::ScopedAllowIO allow_io;
const PolicyDefinitionList* policy_list(policy_definition_list());
for (const PolicyDefinitionList::Entry* current = policy_list->begin;
current != policy_list->end; ++current) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment