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

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

Issue 9265026: Implement restart on Idle for Kiosk Mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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 | Annotate | Revision Log
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_factory.h" 5 #include "chrome/browser/ui/webui/chrome_web_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/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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #include "chrome/common/pref_names.h" 52 #include "chrome/common/pref_names.h"
53 #include "chrome/common/url_constants.h" 53 #include "chrome/common/url_constants.h"
54 #include "content/public/browser/web_contents.h" 54 #include "content/public/browser/web_contents.h"
55 #include "content/public/browser/web_ui.h" 55 #include "content/public/browser/web_ui.h"
56 #include "googleurl/src/gurl.h" 56 #include "googleurl/src/gurl.h"
57 57
58 #if defined(OS_CHROMEOS) 58 #if defined(OS_CHROMEOS)
59 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" 59 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h"
60 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" 60 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h"
61 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" 61 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h"
62 #include "chrome/browser/ui/webui/chromeos/kiosk_mode_logout_dialog.h"
62 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 63 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
63 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" 64 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h"
64 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" 65 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h"
65 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" 66 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h"
66 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" 67 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h"
67 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" 68 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h"
68 #include "chrome/browser/ui/webui/active_downloads_ui.h" 69 #include "chrome/browser/ui/webui/active_downloads_ui.h"
69 #else 70 #else
70 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" 71 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h"
71 #endif 72 #endif
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 #endif 244 #endif
244 #if defined(OS_CHROMEOS) 245 #if defined(OS_CHROMEOS)
245 if (url.host() == chrome::kChromeUIActiveDownloadsHost) 246 if (url.host() == chrome::kChromeUIActiveDownloadsHost)
246 return &NewWebUI<ActiveDownloadsUI>; 247 return &NewWebUI<ActiveDownloadsUI>;
247 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) 248 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost)
248 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; 249 return &NewWebUI<chromeos::ChooseMobileNetworkUI>;
249 if (url.host() == chrome::kChromeUIImageBurnerHost) 250 if (url.host() == chrome::kChromeUIImageBurnerHost)
250 return &NewWebUI<ImageBurnUI>; 251 return &NewWebUI<ImageBurnUI>;
251 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) 252 if (url.host() == chrome::kChromeUIKeyboardOverlayHost)
252 return &NewWebUI<KeyboardOverlayUI>; 253 return &NewWebUI<KeyboardOverlayUI>;
254 if (url.host() == chrome::kChromeUIKioskModeLogoutDialogHost)
255 return &NewWebUI<KioskModeLogoutDialogUI>;
253 if (url.host() == chrome::kChromeUIMobileSetupHost) 256 if (url.host() == chrome::kChromeUIMobileSetupHost)
254 return &NewWebUI<MobileSetupUI>; 257 return &NewWebUI<MobileSetupUI>;
255 if (url.host() == chrome::kChromeUIOobeHost) 258 if (url.host() == chrome::kChromeUIOobeHost)
256 return &NewWebUI<chromeos::OobeUI>; 259 return &NewWebUI<chromeos::OobeUI>;
257 if (url.host() == chrome::kChromeUIProxySettingsHost) 260 if (url.host() == chrome::kChromeUIProxySettingsHost)
258 return &NewWebUI<chromeos::ProxySettingsUI>; 261 return &NewWebUI<chromeos::ProxySettingsUI>;
259 if (url.host() == chrome::kChromeUIRegisterPageHost) 262 if (url.host() == chrome::kChromeUIRegisterPageHost)
260 return &NewWebUI<RegisterPageUI>; 263 return &NewWebUI<RegisterPageUI>;
261 if (url.host() == chrome::kChromeUISimUnlockHost) 264 if (url.host() == chrome::kChromeUISimUnlockHost)
262 return &NewWebUI<chromeos::SimUnlockUI>; 265 return &NewWebUI<chromeos::SimUnlockUI>;
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 return OptionsUI::GetFaviconResourceBytes(); 491 return OptionsUI::GetFaviconResourceBytes();
489 492
490 if (page_url.host() == chrome::kChromeUISettingsFrameHost) 493 if (page_url.host() == chrome::kChromeUISettingsFrameHost)
491 return options2::OptionsUI::GetFaviconResourceBytes(); 494 return options2::OptionsUI::GetFaviconResourceBytes();
492 495
493 if (page_url.host() == chrome::kChromeUIPluginsHost) 496 if (page_url.host() == chrome::kChromeUIPluginsHost)
494 return PluginsUI::GetFaviconResourceBytes(); 497 return PluginsUI::GetFaviconResourceBytes();
495 498
496 return NULL; 499 return NULL;
497 } 500 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698