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

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

Issue 9265026: Implement restart on Idle for Kiosk Mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments. Created 8 years, 10 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_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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 #include "googleurl/src/gurl.h" 58 #include "googleurl/src/gurl.h"
59 59
60 #if defined(OS_CHROMEOS) 60 #if defined(OS_CHROMEOS)
61 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" 61 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h"
62 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" 62 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h"
63 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" 63 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h"
64 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 64 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
65 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" 65 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h"
66 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" 66 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h"
67 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" 67 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h"
68 #include "chrome/browser/ui/webui/chromeos/retail_mode_logout_dialog.h"
68 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" 69 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h"
69 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" 70 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h"
70 #include "chrome/browser/ui/webui/active_downloads_ui.h" 71 #include "chrome/browser/ui/webui/active_downloads_ui.h"
71 #else 72 #else
72 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" 73 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h"
73 #endif 74 #endif
74 75
75 #if defined(USE_VIRTUAL_KEYBOARD) 76 #if defined(USE_VIRTUAL_KEYBOARD)
76 #include "chrome/browser/ui/webui/keyboard_ui.h" 77 #include "chrome/browser/ui/webui/keyboard_ui.h"
77 #endif 78 #endif
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) 261 if (url.host() == chrome::kChromeUIKeyboardOverlayHost)
261 return &NewWebUI<KeyboardOverlayUI>; 262 return &NewWebUI<KeyboardOverlayUI>;
262 if (url.host() == chrome::kChromeUIMobileSetupHost) 263 if (url.host() == chrome::kChromeUIMobileSetupHost)
263 return &NewWebUI<MobileSetupUI>; 264 return &NewWebUI<MobileSetupUI>;
264 if (url.host() == chrome::kChromeUIOobeHost) 265 if (url.host() == chrome::kChromeUIOobeHost)
265 return &NewWebUI<chromeos::OobeUI>; 266 return &NewWebUI<chromeos::OobeUI>;
266 if (url.host() == chrome::kChromeUIProxySettingsHost) 267 if (url.host() == chrome::kChromeUIProxySettingsHost)
267 return &NewWebUI<chromeos::ProxySettingsUI>; 268 return &NewWebUI<chromeos::ProxySettingsUI>;
268 if (url.host() == chrome::kChromeUIRegisterPageHost) 269 if (url.host() == chrome::kChromeUIRegisterPageHost)
269 return &NewWebUI<RegisterPageUI>; 270 return &NewWebUI<RegisterPageUI>;
271 if (url.host() == chrome::kChromeUIRetailModeLogoutDialogHost)
272 return &NewWebUI<RetailModeLogoutDialogUI>;
270 if (url.host() == chrome::kChromeUISimUnlockHost) 273 if (url.host() == chrome::kChromeUISimUnlockHost)
271 return &NewWebUI<chromeos::SimUnlockUI>; 274 return &NewWebUI<chromeos::SimUnlockUI>;
272 if (url.host() == chrome::kChromeUISystemInfoHost) 275 if (url.host() == chrome::kChromeUISystemInfoHost)
273 return &NewWebUI<SystemInfoUI>; 276 return &NewWebUI<SystemInfoUI>;
274 #endif // defined(OS_CHROMEOS) 277 #endif // defined(OS_CHROMEOS)
275 278
276 /**************************************************************************** 279 /****************************************************************************
277 * Other #defines and special logics. 280 * Other #defines and special logics.
278 ***************************************************************************/ 281 ***************************************************************************/
279 #if defined(ENABLE_CONFIGURATION_POLICY) 282 #if defined(ENABLE_CONFIGURATION_POLICY)
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 return OptionsUI::GetFaviconResourceBytes(); 504 return OptionsUI::GetFaviconResourceBytes();
502 505
503 if (page_url.host() == chrome::kChromeUISettingsFrameHost) 506 if (page_url.host() == chrome::kChromeUISettingsFrameHost)
504 return options2::OptionsUI::GetFaviconResourceBytes(); 507 return options2::OptionsUI::GetFaviconResourceBytes();
505 508
506 if (page_url.host() == chrome::kChromeUIPluginsHost) 509 if (page_url.host() == chrome::kChromeUIPluginsHost)
507 return PluginsUI::GetFaviconResourceBytes(); 510 return PluginsUI::GetFaviconResourceBytes();
508 511
509 return NULL; 512 return NULL;
510 } 513 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698