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

Unified Diff: chrome/browser/policy/asynchronous_policy_provider.cc

Issue 9111022: Removed ConfigurationPolicyType and extended PolicyMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 11 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/asynchronous_policy_provider.cc
diff --git a/chrome/browser/policy/asynchronous_policy_provider.cc b/chrome/browser/policy/asynchronous_policy_provider.cc
index 06ea9a79979a9ec306dca58dbd4fdce1befd7ecb..89d630f8e061f2c03bef6cd8265b25c038c8a1a8 100644
--- a/chrome/browser/policy/asynchronous_policy_provider.cc
+++ b/chrome/browser/policy/asynchronous_policy_provider.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -6,7 +6,6 @@
#include "base/bind.h"
#include "chrome/browser/policy/asynchronous_policy_loader.h"
-#include "chrome/browser/policy/policy_map.h"
#include "content/public/browser/browser_thread.h"
using content::BrowserThread;
@@ -15,8 +14,12 @@ namespace policy {
AsynchronousPolicyProvider::AsynchronousPolicyProvider(
const PolicyDefinitionList* policy_list,
+ PolicyLevel level,
+ PolicyScope scope,
scoped_refptr<AsynchronousPolicyLoader> loader)
: ConfigurationPolicyProvider(policy_list),
+ level_(level),
+ scope_(scope),
loader_(loader),
pending_refreshes_(0),
ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) {
@@ -36,7 +39,7 @@ bool AsynchronousPolicyProvider::ProvideInternal(PolicyMap* map) {
DCHECK(CalledOnValidThread());
if (!loader_->policy())
return false;
- map->LoadFrom(loader_->policy(), policy_definition_list());
+ map->LoadFrom(loader_->policy(), policy_definition_list(), level_, scope_);
return true;
}
« no previous file with comments | « chrome/browser/policy/asynchronous_policy_provider.h ('k') | chrome/browser/policy/asynchronous_policy_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698