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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 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 <utility> 7 #include <utility>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/prefs/pref_value_map.h"
12 #include "base/values.h" 11 #include "base/values.h"
13 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
14 #include "chrome/browser/extensions/policy_handlers.h" 13 #include "chrome/browser/extensions/policy_handlers.h"
15 #include "components/policy/core/common/policy_map.h" 14 #include "components/policy/core/common/policy_map.h"
15 #include "components/prefs/pref_value_map.h"
16 #include "extensions/browser/pref_names.h" 16 #include "extensions/browser/pref_names.h"
17 #include "net/url_request/url_request_context_getter.h" 17 #include "net/url_request/url_request_context_getter.h"
18 18
19 namespace chromeos { 19 namespace chromeos {
20 20
21 DeviceLocalAccountExternalPolicyLoader:: 21 DeviceLocalAccountExternalPolicyLoader::
22 DeviceLocalAccountExternalPolicyLoader(policy::CloudPolicyStore* store, 22 DeviceLocalAccountExternalPolicyLoader(policy::CloudPolicyStore* store,
23 const base::FilePath& cache_dir) 23 const base::FilePath& cache_dir)
24 : store_(store), 24 : store_(store),
25 cache_dir_(cache_dir) { 25 cache_dir_(cache_dir) {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 &value) && 107 &value) &&
108 value->GetAsDictionary(&dict)) { 108 value->GetAsDictionary(&dict)) {
109 prefs.reset(dict->DeepCopy()); 109 prefs.reset(dict->DeepCopy());
110 } 110 }
111 } 111 }
112 112
113 external_cache_->UpdateExtensionsList(std::move(prefs)); 113 external_cache_->UpdateExtensionsList(std::move(prefs));
114 } 114 }
115 115
116 } // namespace chromeos 116 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698