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