OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/webui/policy_ui.h" | 5 #include "chrome/browser/ui/webui/policy_ui.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 #endif | 59 #endif |
60 | 60 |
61 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 61 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
62 #include "chrome/browser/extensions/extension_service.h" | 62 #include "chrome/browser/extensions/extension_service.h" |
63 #include "chrome/browser/extensions/extension_system.h" | 63 #include "chrome/browser/extensions/extension_system.h" |
64 #include "chrome/browser/policy/policy_domain_descriptor.h" | 64 #include "chrome/browser/policy/policy_domain_descriptor.h" |
65 #include "chrome/common/extensions/extension.h" | 65 #include "chrome/common/extensions/extension.h" |
66 #include "chrome/common/extensions/extension_manifest_constants.h" | 66 #include "chrome/common/extensions/extension_manifest_constants.h" |
67 #include "chrome/common/extensions/extension_set.h" | 67 #include "chrome/common/extensions/extension_set.h" |
68 #include "chrome/common/extensions/manifest.h" | 68 #include "chrome/common/extensions/manifest.h" |
69 #include "chrome/common/policy/policy_schema.h" | 69 #include "components/policy/core/common/policy_schema.h" |
70 #endif | 70 #endif |
71 | 71 |
72 namespace em = enterprise_management; | 72 namespace em = enterprise_management; |
73 | 73 |
74 namespace { | 74 namespace { |
75 | 75 |
76 content::WebUIDataSource* CreatePolicyUIHTMLSource() { | 76 content::WebUIDataSource* CreatePolicyUIHTMLSource() { |
77 content::WebUIDataSource* source = | 77 content::WebUIDataSource* source = |
78 content::WebUIDataSource::Create(chrome::kChromeUIPolicyHost); | 78 content::WebUIDataSource::Create(chrome::kChromeUIPolicyHost); |
79 | 79 |
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 } | 717 } |
718 | 718 |
719 PolicyUI::PolicyUI(content::WebUI* web_ui) : WebUIController(web_ui) { | 719 PolicyUI::PolicyUI(content::WebUI* web_ui) : WebUIController(web_ui) { |
720 web_ui->AddMessageHandler(new PolicyUIHandler); | 720 web_ui->AddMessageHandler(new PolicyUIHandler); |
721 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), | 721 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), |
722 CreatePolicyUIHTMLSource()); | 722 CreatePolicyUIHTMLSource()); |
723 } | 723 } |
724 | 724 |
725 PolicyUI::~PolicyUI() { | 725 PolicyUI::~PolicyUI() { |
726 } | 726 } |
OLD | NEW |