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

Side by Side Diff: chrome/browser/extensions/policy_handlers.cc

Issue 2276823003: Change many chrome/browser includes to use qualified paths. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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/extensions/policy_handlers.h" 5 #include "chrome/browser/extensions/policy_handlers.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "chrome/browser/extensions/extension_management_constants.h" 11 #include "chrome/browser/extensions/extension_management_constants.h"
12 #include "chrome/browser/extensions/external_policy_loader.h" 12 #include "chrome/browser/extensions/external_policy_loader.h"
13 #include "components/crx_file/id_util.h" 13 #include "components/crx_file/id_util.h"
14 #include "components/policy/core/browser/policy_error_map.h" 14 #include "components/policy/core/browser/policy_error_map.h"
15 #include "components/policy/core/common/policy_map.h" 15 #include "components/policy/core/common/policy_map.h"
16 #include "components/policy/core/common/schema.h" 16 #include "components/policy/core/common/schema.h"
17 #include "components/policy/policy_constants.h" 17 #include "components/policy/policy_constants.h"
18 #include "components/prefs/pref_value_map.h" 18 #include "components/prefs/pref_value_map.h"
19 #include "components/strings/grit/components_strings.h"
19 #include "extensions/browser/pref_names.h" 20 #include "extensions/browser/pref_names.h"
20 #include "extensions/common/extension.h" 21 #include "extensions/common/extension.h"
21 #include "grit/components_strings.h"
22 #include "url/gurl.h" 22 #include "url/gurl.h"
23 23
24 namespace extensions { 24 namespace extensions {
25 25
26 // ExtensionListPolicyHandler implementation ----------------------------------- 26 // ExtensionListPolicyHandler implementation -----------------------------------
27 27
28 ExtensionListPolicyHandler::ExtensionListPolicyHandler(const char* policy_name, 28 ExtensionListPolicyHandler::ExtensionListPolicyHandler(const char* policy_name,
29 const char* pref_path, 29 const char* pref_path,
30 bool allow_wildcards) 30 bool allow_wildcards)
31 : policy::TypeCheckingPolicyHandler(policy_name, base::Value::TYPE_LIST), 31 : policy::TypeCheckingPolicyHandler(policy_name, base::Value::TYPE_LIST),
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 void ExtensionSettingsPolicyHandler::ApplyPolicySettings( 317 void ExtensionSettingsPolicyHandler::ApplyPolicySettings(
318 const policy::PolicyMap& policies, 318 const policy::PolicyMap& policies,
319 PrefValueMap* prefs) { 319 PrefValueMap* prefs) {
320 std::unique_ptr<base::Value> policy_value; 320 std::unique_ptr<base::Value> policy_value;
321 if (!CheckAndGetValue(policies, NULL, &policy_value) || !policy_value) 321 if (!CheckAndGetValue(policies, NULL, &policy_value) || !policy_value)
322 return; 322 return;
323 prefs->SetValue(pref_names::kExtensionManagement, std::move(policy_value)); 323 prefs->SetValue(pref_names::kExtensionManagement, std::move(policy_value));
324 } 324 }
325 325
326 } // namespace extensions 326 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698