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

Side by Side Diff: chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.cc

Issue 674273002: Cleanup: Remove unneeded chrome/common/pref_names.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/chromeos/extensions/device_local_account_external_polic y_loader.h" 5 #include "chrome/browser/chromeos/extensions/device_local_account_external_polic y_loader.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/prefs/pref_value_map.h" 9 #include "base/prefs/pref_value_map.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/extensions/policy_handlers.h" 12 #include "chrome/browser/extensions/policy_handlers.h"
13 #include "chrome/common/pref_names.h"
14 #include "components/policy/core/common/policy_map.h" 13 #include "components/policy/core/common/policy_map.h"
15 #include "extensions/browser/pref_names.h" 14 #include "extensions/browser/pref_names.h"
16 #include "net/url_request/url_request_context_getter.h" 15 #include "net/url_request/url_request_context_getter.h"
17 16
18 namespace chromeos { 17 namespace chromeos {
19 18
20 DeviceLocalAccountExternalPolicyLoader:: 19 DeviceLocalAccountExternalPolicyLoader::
21 DeviceLocalAccountExternalPolicyLoader(policy::CloudPolicyStore* store, 20 DeviceLocalAccountExternalPolicyLoader(policy::CloudPolicyStore* store,
22 const base::FilePath& cache_dir) 21 const base::FilePath& cache_dir)
23 : store_(store), 22 : store_(store),
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 &value) && 105 &value) &&
107 value->GetAsDictionary(&dict)) { 106 value->GetAsDictionary(&dict)) {
108 prefs.reset(dict->DeepCopy()); 107 prefs.reset(dict->DeepCopy());
109 } 108 }
110 } 109 }
111 110
112 external_cache_->UpdateExtensionsList(prefs.Pass()); 111 external_cache_->UpdateExtensionsList(prefs.Pass());
113 } 112 }
114 113
115 } // namespace chromeos 114 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698