| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom
eos.h" | 62 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom
eos.h" |
| 63 #else | 63 #else |
| 64 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h" | 64 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h" |
| 65 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" | 65 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" |
| 66 #include "content/public/browser/web_contents.h" | 66 #include "content/public/browser/web_contents.h" |
| 67 #endif | 67 #endif |
| 68 | 68 |
| 69 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 69 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 70 #include "chrome/browser/extensions/extension_service.h" | 70 #include "chrome/browser/extensions/extension_service.h" |
| 71 #include "chrome/browser/extensions/extension_system.h" | 71 #include "chrome/browser/extensions/extension_system.h" |
| 72 #include "chrome/common/extensions/extension_set.h" | |
| 73 #include "extensions/common/extension.h" | 72 #include "extensions/common/extension.h" |
| 73 #include "extensions/common/extension_set.h" |
| 74 #include "extensions/common/manifest.h" | 74 #include "extensions/common/manifest.h" |
| 75 #include "extensions/common/manifest_constants.h" | 75 #include "extensions/common/manifest_constants.h" |
| 76 #endif | 76 #endif |
| 77 | 77 |
| 78 namespace em = enterprise_management; | 78 namespace em = enterprise_management; |
| 79 | 79 |
| 80 namespace { | 80 namespace { |
| 81 | 81 |
| 82 content::WebUIDataSource* CreatePolicyUIHTMLSource() { | 82 content::WebUIDataSource* CreatePolicyUIHTMLSource() { |
| 83 content::WebUIDataSource* source = | 83 content::WebUIDataSource* source = |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 } | 756 } |
| 757 | 757 |
| 758 PolicyUI::PolicyUI(content::WebUI* web_ui) : WebUIController(web_ui) { | 758 PolicyUI::PolicyUI(content::WebUI* web_ui) : WebUIController(web_ui) { |
| 759 web_ui->AddMessageHandler(new PolicyUIHandler); | 759 web_ui->AddMessageHandler(new PolicyUIHandler); |
| 760 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), | 760 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), |
| 761 CreatePolicyUIHTMLSource()); | 761 CreatePolicyUIHTMLSource()); |
| 762 } | 762 } |
| 763 | 763 |
| 764 PolicyUI::~PolicyUI() { | 764 PolicyUI::~PolicyUI() { |
| 765 } | 765 } |
| OLD | NEW |