| 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/chrome_web_ui_controller_factory.h" | 5 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 #endif | 75 #endif |
| 76 | 76 |
| 77 #if defined(ENABLE_CONFIGURATION_POLICY) | 77 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 78 #include "chrome/browser/ui/webui/policy_ui.h" | 78 #include "chrome/browser/ui/webui/policy_ui.h" |
| 79 #endif | 79 #endif |
| 80 | 80 |
| 81 #if defined(ENABLE_WEBRTC) | 81 #if defined(ENABLE_WEBRTC) |
| 82 #include "chrome/browser/ui/webui/media/webrtc_logs_ui.h" | 82 #include "chrome/browser/ui/webui/media/webrtc_logs_ui.h" |
| 83 #endif | 83 #endif |
| 84 | 84 |
| 85 #if defined(ENABLE_FULL_PRINTING) | 85 #if defined(ENABLE_PRINT_PREVIEW) |
| 86 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" | 86 #include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" |
| 87 #endif | 87 #endif |
| 88 | 88 |
| 89 #if !defined(OS_ANDROID) | 89 #if !defined(OS_ANDROID) |
| 90 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 90 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
| 91 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" | 91 #include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" |
| 92 #include "chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui
.h" | 92 #include "chrome/browser/ui/webui/suggestions_internals/suggestions_internals_ui
.h" |
| 93 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_ui.h" | 93 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_ui.h" |
| 94 #include "chrome/browser/ui/webui/system_info_ui.h" | 94 #include "chrome/browser/ui/webui/system_info_ui.h" |
| 95 #include "chrome/browser/ui/webui/uber/uber_ui.h" | 95 #include "chrome/browser/ui/webui/uber/uber_ui.h" |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 || url.host() == chrome::kChromeUITaskManagerHost | 523 || url.host() == chrome::kChromeUITaskManagerHost |
| 524 #endif | 524 #endif |
| 525 ) { | 525 ) { |
| 526 return &NewWebUI<AboutUI>; | 526 return &NewWebUI<AboutUI>; |
| 527 } | 527 } |
| 528 | 528 |
| 529 #if defined(ENABLE_EXTENSIONS) | 529 #if defined(ENABLE_EXTENSIONS) |
| 530 if (url.host() == chrome::kChromeUIExtensionsFrameHost) | 530 if (url.host() == chrome::kChromeUIExtensionsFrameHost) |
| 531 return &NewWebUI<extensions::ExtensionsUI>; | 531 return &NewWebUI<extensions::ExtensionsUI>; |
| 532 #endif | 532 #endif |
| 533 #if defined(ENABLE_FULL_PRINTING) | 533 #if defined(ENABLE_PRINT_PREVIEW) |
| 534 if (url.host() == chrome::kChromeUIPrintHost && | 534 if (url.host() == chrome::kChromeUIPrintHost && |
| 535 !profile->GetPrefs()->GetBoolean(prefs::kPrintPreviewDisabled)) { | 535 !profile->GetPrefs()->GetBoolean(prefs::kPrintPreviewDisabled)) { |
| 536 return &NewWebUI<PrintPreviewUI>; | 536 return &NewWebUI<PrintPreviewUI>; |
| 537 } | 537 } |
| 538 #endif | 538 #endif |
| 539 | 539 |
| 540 if (IsEnableDomDistillerSet() && | 540 if (IsEnableDomDistillerSet() && |
| 541 url.host() == dom_distiller::kChromeUIDomDistillerHost) { | 541 url.host() == dom_distiller::kChromeUIDomDistillerHost) { |
| 542 return &NewWebUI<dom_distiller::DomDistillerUi>; | 542 return &NewWebUI<dom_distiller::DomDistillerUi>; |
| 543 } | 543 } |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 #endif | 726 #endif |
| 727 | 727 |
| 728 // Android doesn't use the plugins pages. | 728 // Android doesn't use the plugins pages. |
| 729 if (page_url.host() == chrome::kChromeUIPluginsHost) | 729 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 730 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 730 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 731 | 731 |
| 732 #endif | 732 #endif |
| 733 | 733 |
| 734 return NULL; | 734 return NULL; |
| 735 } | 735 } |
| OLD | NEW |