OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/dom_ui/dom_ui_factory.h" | 5 #include "chrome/browser/dom_ui/dom_ui_factory.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "chrome/browser/about_flags.h" | 8 #include "chrome/browser/about_flags.h" |
9 #include "chrome/browser/dom_ui/bookmarks_ui.h" | 9 #include "chrome/browser/dom_ui/bookmarks_ui.h" |
10 #include "chrome/browser/dom_ui/bug_report_ui.h" | 10 #include "chrome/browser/dom_ui/bug_report_ui.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 if (url.host() == chrome::kChromeUISystemInfoHost) | 193 if (url.host() == chrome::kChromeUISystemInfoHost) |
194 return &NewDOMUI<SystemInfoUI>; | 194 return &NewDOMUI<SystemInfoUI>; |
195 if (url.host() == chrome::kChromeUIMenu) | 195 if (url.host() == chrome::kChromeUIMenu) |
196 return &NewDOMUI<chromeos::MenuUI>; | 196 return &NewDOMUI<chromeos::MenuUI>; |
197 if (url.host() == chrome::kChromeUIWrenchMenu) | 197 if (url.host() == chrome::kChromeUIWrenchMenu) |
198 return &NewDOMUI<chromeos::WrenchMenuUI>; | 198 return &NewDOMUI<chromeos::WrenchMenuUI>; |
199 if (url.host() == chrome::kChromeUINetworkMenu) | 199 if (url.host() == chrome::kChromeUINetworkMenu) |
200 return &NewDOMUI<chromeos::NetworkMenuUI>; | 200 return &NewDOMUI<chromeos::NetworkMenuUI>; |
201 #else | 201 #else |
202 if (url.host() == chrome::kChromeUISettingsHost) { | 202 if (url.host() == chrome::kChromeUISettingsHost) { |
203 if (CommandLine::ForCurrentProcess()->HasSwitch( | 203 if (!CommandLine::ForCurrentProcess()->HasSwitch( |
204 switches::kEnableTabbedOptions)) { | 204 switches::kDisableTabbedOptions)) { |
205 return &NewDOMUI<OptionsUI>; | 205 return &NewDOMUI<OptionsUI>; |
206 } | 206 } |
207 } | 207 } |
208 if (url.host() == chrome::kChromeUIPrintHost) { | 208 if (url.host() == chrome::kChromeUIPrintHost) { |
209 if (CommandLine::ForCurrentProcess()->HasSwitch( | 209 if (CommandLine::ForCurrentProcess()->HasSwitch( |
210 switches::kEnablePrintPreview)) { | 210 switches::kEnablePrintPreview)) { |
211 return &NewDOMUI<PrintPreviewUI>; | 211 return &NewDOMUI<PrintPreviewUI>; |
212 } | 212 } |
213 } | 213 } |
214 #endif // defined(OS_CHROMEOS) | 214 #endif // defined(OS_CHROMEOS) |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 if (page_url.host() == chrome::kChromeUIPluginsHost) | 329 if (page_url.host() == chrome::kChromeUIPluginsHost) |
330 return PluginsUI::GetFaviconResourceBytes(); | 330 return PluginsUI::GetFaviconResourceBytes(); |
331 | 331 |
332 #if defined(ENABLE_REMOTING) | 332 #if defined(ENABLE_REMOTING) |
333 if (page_url.host() == chrome::kChromeUIRemotingHost) | 333 if (page_url.host() == chrome::kChromeUIRemotingHost) |
334 return RemotingUI::GetFaviconResourceBytes(); | 334 return RemotingUI::GetFaviconResourceBytes(); |
335 #endif | 335 #endif |
336 | 336 |
337 return NULL; | 337 return NULL; |
338 } | 338 } |
OLD | NEW |