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

Side by Side Diff: chrome/browser/policy/asynchronous_policy_provider.cc

Issue 5676004: Cleanup: Remove unneeded browser_thread.h usage. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix deps Created 10 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/browser/policy/asynchronous_policy_provider.h" 5 #include "chrome/browser/policy/asynchronous_policy_provider.h"
6 6
7 #include "chrome/browser/browser_thread.h"
8 #include "chrome/browser/policy/asynchronous_policy_loader.h" 7 #include "chrome/browser/policy/asynchronous_policy_loader.h"
9 8
10 namespace policy { 9 namespace policy {
11 10
12 AsynchronousPolicyProvider::AsynchronousPolicyProvider( 11 AsynchronousPolicyProvider::AsynchronousPolicyProvider(
13 const PolicyDefinitionList* policy_list, 12 const PolicyDefinitionList* policy_list,
14 scoped_refptr<AsynchronousPolicyLoader> loader) 13 scoped_refptr<AsynchronousPolicyLoader> loader)
15 : ConfigurationPolicyProvider(policy_list), 14 : ConfigurationPolicyProvider(policy_list),
16 loader_(loader) { 15 loader_(loader) {
17 // TODO(danno): This explicit registration of the provider shouldn't be 16 // TODO(danno): This explicit registration of the provider shouldn't be
(...skipping 15 matching lines...) Expand all
33 DCHECK(loader_->policy()); 32 DCHECK(loader_->policy());
34 DecodePolicyValueTree(loader_->policy(), store); 33 DecodePolicyValueTree(loader_->policy(), store);
35 return true; 34 return true;
36 } 35 }
37 36
38 scoped_refptr<AsynchronousPolicyLoader> AsynchronousPolicyProvider::loader() { 37 scoped_refptr<AsynchronousPolicyLoader> AsynchronousPolicyProvider::loader() {
39 return loader_; 38 return loader_;
40 } 39 }
41 40
42 } // namespace policy 41 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698