| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom
eos.h" | 61 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom
eos.h" |
| 62 #else | 62 #else |
| 63 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h" | 63 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h" |
| 64 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" | 64 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" |
| 65 #include "content/public/browser/web_contents.h" | 65 #include "content/public/browser/web_contents.h" |
| 66 #endif | 66 #endif |
| 67 | 67 |
| 68 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 68 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 69 #include "chrome/browser/extensions/extension_service.h" | 69 #include "chrome/browser/extensions/extension_service.h" |
| 70 #include "chrome/browser/extensions/extension_system.h" | 70 #include "chrome/browser/extensions/extension_system.h" |
| 71 #include "chrome/common/extensions/extension.h" | |
| 72 #include "chrome/common/extensions/extension_set.h" | 71 #include "chrome/common/extensions/extension_set.h" |
| 72 #include "extensions/common/extension.h" |
| 73 #include "extensions/common/manifest.h" | 73 #include "extensions/common/manifest.h" |
| 74 #include "extensions/common/manifest_constants.h" | 74 #include "extensions/common/manifest_constants.h" |
| 75 #endif | 75 #endif |
| 76 | 76 |
| 77 namespace em = enterprise_management; | 77 namespace em = enterprise_management; |
| 78 | 78 |
| 79 namespace { | 79 namespace { |
| 80 | 80 |
| 81 content::WebUIDataSource* CreatePolicyUIHTMLSource() { | 81 content::WebUIDataSource* CreatePolicyUIHTMLSource() { |
| 82 content::WebUIDataSource* source = | 82 content::WebUIDataSource* source = |
| (...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 } | 725 } |
| 726 | 726 |
| 727 PolicyUI::PolicyUI(content::WebUI* web_ui) : WebUIController(web_ui) { | 727 PolicyUI::PolicyUI(content::WebUI* web_ui) : WebUIController(web_ui) { |
| 728 web_ui->AddMessageHandler(new PolicyUIHandler); | 728 web_ui->AddMessageHandler(new PolicyUIHandler); |
| 729 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), | 729 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), |
| 730 CreatePolicyUIHTMLSource()); | 730 CreatePolicyUIHTMLSource()); |
| 731 } | 731 } |
| 732 | 732 |
| 733 PolicyUI::~PolicyUI() { | 733 PolicyUI::~PolicyUI() { |
| 734 } | 734 } |
| OLD | NEW |