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 "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/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 if (SyncPromoUI::ShouldShowSyncPromo(profile)) | 322 if (SyncPromoUI::ShouldShowSyncPromo(profile)) |
323 return &NewWebUI<SyncPromoUI>; | 323 return &NewWebUI<SyncPromoUI>; |
324 else | 324 else |
325 return &NewWebUI<NewTabUI>; | 325 return &NewWebUI<NewTabUI>; |
326 } | 326 } |
327 #endif | 327 #endif |
328 | 328 |
329 if (url.host() == chrome::kChromeUIChromeURLsHost || | 329 if (url.host() == chrome::kChromeUIChromeURLsHost || |
330 url.host() == chrome::kChromeUICreditsHost || | 330 url.host() == chrome::kChromeUICreditsHost || |
331 url.host() == chrome::kChromeUIDNSHost || | 331 url.host() == chrome::kChromeUIDNSHost || |
332 url.host() == chrome::kChromeUIHistogramsHost || | |
333 url.host() == chrome::kChromeUIMemoryHost || | 332 url.host() == chrome::kChromeUIMemoryHost || |
334 url.host() == chrome::kChromeUIMemoryRedirectHost || | 333 url.host() == chrome::kChromeUIMemoryRedirectHost || |
335 url.host() == chrome::kChromeUIStatsHost || | 334 url.host() == chrome::kChromeUIStatsHost || |
336 url.host() == chrome::kChromeUITermsHost || | 335 url.host() == chrome::kChromeUITermsHost || |
337 url.host() == chrome::kChromeUIVersionHost | 336 url.host() == chrome::kChromeUIVersionHost |
338 #if defined(OS_LINUX) || defined(OS_OPENBSD) | 337 #if defined(OS_LINUX) || defined(OS_OPENBSD) |
339 || url.host() == chrome::kChromeUILinuxProxyConfigHost | 338 || url.host() == chrome::kChromeUILinuxProxyConfigHost |
340 || url.host() == chrome::kChromeUISandboxHost | 339 || url.host() == chrome::kChromeUISandboxHost |
341 #endif | 340 #endif |
342 #if defined(OS_CHROMEOS) | 341 #if defined(OS_CHROMEOS) |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 if (page_url.host() == chrome::kChromeUISettingsFrameHost) | 520 if (page_url.host() == chrome::kChromeUISettingsFrameHost) |
522 return options2::OptionsUI::GetFaviconResourceBytes(); | 521 return options2::OptionsUI::GetFaviconResourceBytes(); |
523 | 522 |
524 // Android doesn't use the plugins pages. | 523 // Android doesn't use the plugins pages. |
525 if (page_url.host() == chrome::kChromeUIPluginsHost) | 524 if (page_url.host() == chrome::kChromeUIPluginsHost) |
526 return PluginsUI::GetFaviconResourceBytes(); | 525 return PluginsUI::GetFaviconResourceBytes(); |
527 #endif | 526 #endif |
528 | 527 |
529 return NULL; | 528 return NULL; |
530 } | 529 } |
OLD | NEW |