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

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

Issue 603253003: Revert of Restored disable print preview policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/common/chrome_switches.h » ('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/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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698