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

Side by Side Diff: chrome/browser/ui/webui/policy_ui.cc

Issue 23045003: Moved chrome/common/policy to components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/policy/policy_service_impl_unittest.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_service_impl_unittest.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698