| 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 30 matching lines...) Expand all Loading... |
| 41 #include "components/policy/core/common/schema_map.h" | 41 #include "components/policy/core/common/schema_map.h" |
| 42 #include "components/policy/core/common/schema_registry.h" | 42 #include "components/policy/core/common/schema_registry.h" |
| 43 #include "content/public/browser/notification_observer.h" | 43 #include "content/public/browser/notification_observer.h" |
| 44 #include "content/public/browser/notification_registrar.h" | 44 #include "content/public/browser/notification_registrar.h" |
| 45 #include "content/public/browser/notification_service.h" | 45 #include "content/public/browser/notification_service.h" |
| 46 #include "content/public/browser/web_ui.h" | 46 #include "content/public/browser/web_ui.h" |
| 47 #include "content/public/browser/web_ui_data_source.h" | 47 #include "content/public/browser/web_ui_data_source.h" |
| 48 #include "content/public/browser/web_ui_message_handler.h" | 48 #include "content/public/browser/web_ui_message_handler.h" |
| 49 #include "google_apis/gaia/gaia_auth_util.h" | 49 #include "google_apis/gaia/gaia_auth_util.h" |
| 50 #include "grit/browser_resources.h" | 50 #include "grit/browser_resources.h" |
| 51 #include "grit/generated_resources.h" | 51 #include "grit/component_strings.h" |
| 52 #include "policy/policy_constants.h" | 52 #include "policy/policy_constants.h" |
| 53 #include "ui/base/l10n/l10n_util.h" | 53 #include "ui/base/l10n/l10n_util.h" |
| 54 #include "ui/base/l10n/time_format.h" | 54 #include "ui/base/l10n/time_format.h" |
| 55 | 55 |
| 56 #if defined(OS_CHROMEOS) | 56 #if defined(OS_CHROMEOS) |
| 57 #include "chrome/browser/chromeos/login/user_manager.h" | 57 #include "chrome/browser/chromeos/login/user_manager.h" |
| 58 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" | 58 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" |
| 59 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" | 59 #include "chrome/browser/chromeos/policy/device_local_account_policy_service.h" |
| 60 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h" | 60 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h" |
| 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" |
| (...skipping 663 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 |