| 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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 #endif | 521 #endif |
| 522 ) { | 522 ) { |
| 523 return &NewWebUI<AboutUI>; | 523 return &NewWebUI<AboutUI>; |
| 524 } | 524 } |
| 525 | 525 |
| 526 #if defined(ENABLE_EXTENSIONS) | 526 #if defined(ENABLE_EXTENSIONS) |
| 527 if (url.host() == chrome::kChromeUIExtensionsFrameHost) | 527 if (url.host() == chrome::kChromeUIExtensionsFrameHost) |
| 528 return &NewWebUI<extensions::ExtensionsUI>; | 528 return &NewWebUI<extensions::ExtensionsUI>; |
| 529 #endif | 529 #endif |
| 530 #if defined(ENABLE_FULL_PRINTING) | 530 #if defined(ENABLE_FULL_PRINTING) |
| 531 if (url.host() == chrome::kChromeUIPrintHost && | 531 if (url.host() == chrome::kChromeUIPrintHost) |
| 532 !profile->GetPrefs()->GetBoolean(prefs::kPrintPreviewDisabled)) { | |
| 533 return &NewWebUI<PrintPreviewUI>; | 532 return &NewWebUI<PrintPreviewUI>; |
| 534 } | |
| 535 #endif | 533 #endif |
| 536 | 534 |
| 537 if (IsEnableDomDistillerSet() && | 535 if (IsEnableDomDistillerSet() && |
| 538 url.host() == dom_distiller::kChromeUIDomDistillerHost) { | 536 url.host() == dom_distiller::kChromeUIDomDistillerHost) { |
| 539 return &NewWebUI<dom_distiller::DomDistillerUi>; | 537 return &NewWebUI<dom_distiller::DomDistillerUi>; |
| 540 } | 538 } |
| 541 | 539 |
| 542 return NULL; | 540 return NULL; |
| 543 } | 541 } |
| 544 | 542 |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 #endif | 721 #endif |
| 724 | 722 |
| 725 // Android doesn't use the plugins pages. | 723 // Android doesn't use the plugins pages. |
| 726 if (page_url.host() == chrome::kChromeUIPluginsHost) | 724 if (page_url.host() == chrome::kChromeUIPluginsHost) |
| 727 return PluginsUI::GetFaviconResourceBytes(scale_factor); | 725 return PluginsUI::GetFaviconResourceBytes(scale_factor); |
| 728 | 726 |
| 729 #endif | 727 #endif |
| 730 | 728 |
| 731 return NULL; | 729 return NULL; |
| 732 } | 730 } |
| OLD | NEW |