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

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

Issue 8436002: [cros] Remove Views implementation for login/OOBE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/extensions/extension_web_ui.h" 10 #include "chrome/browser/extensions/extension_web_ui.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "chrome/browser/ui/webui/workers_ui.h" 43 #include "chrome/browser/ui/webui/workers_ui.h"
44 #include "chrome/common/chrome_switches.h" 44 #include "chrome/common/chrome_switches.h"
45 #include "chrome/common/extensions/extension_constants.h" 45 #include "chrome/common/extensions/extension_constants.h"
46 #include "chrome/common/url_constants.h" 46 #include "chrome/common/url_constants.h"
47 #include "content/browser/tab_contents/tab_contents.h" 47 #include "content/browser/tab_contents/tab_contents.h"
48 #include "content/browser/webui/web_ui.h" 48 #include "content/browser/webui/web_ui.h"
49 #include "googleurl/src/gurl.h" 49 #include "googleurl/src/gurl.h"
50 50
51 #if defined(OS_CHROMEOS) 51 #if defined(OS_CHROMEOS)
52 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" 52 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h"
53 #include "chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.h"
54 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" 53 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h"
55 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h" 54 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h"
56 #include "chrome/browser/ui/webui/chromeos/login/lock_screen_ui.h" 55 #include "chrome/browser/ui/webui/chromeos/login/lock_screen_ui.h"
57 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 56 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
58 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h" 57 #include "chrome/browser/ui/webui/chromeos/mobile_setup_ui.h"
59 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h" 58 #include "chrome/browser/ui/webui/chromeos/proxy_settings_ui.h"
60 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h" 59 #include "chrome/browser/ui/webui/chromeos/register_page_ui.h"
61 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h" 60 #include "chrome/browser/ui/webui/chromeos/sim_unlock_ui.h"
62 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h" 61 #include "chrome/browser/ui/webui/chromeos/system_info_ui.h"
63 #include "chrome/browser/ui/webui/active_downloads_ui.h" 62 #include "chrome/browser/ui/webui/active_downloads_ui.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 if (url.host() == chrome::kChromeUITrackingHost2) 211 if (url.host() == chrome::kChromeUITrackingHost2)
213 return &NewWebUI<TrackingUI>; 212 return &NewWebUI<TrackingUI>;
214 if (url.host() == chrome::kChromeUIWorkersHost) 213 if (url.host() == chrome::kChromeUIWorkersHost)
215 return &NewWebUI<WorkersUI>; 214 return &NewWebUI<WorkersUI>;
216 215
217 #if defined(OS_CHROMEOS) 216 #if defined(OS_CHROMEOS)
218 if (url.host() == chrome::kChromeUIActiveDownloadsHost) 217 if (url.host() == chrome::kChromeUIActiveDownloadsHost)
219 return &NewWebUI<ActiveDownloadsUI>; 218 return &NewWebUI<ActiveDownloadsUI>;
220 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) 219 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost)
221 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; 220 return &NewWebUI<chromeos::ChooseMobileNetworkUI>;
222 if (url.host() == chrome::kChromeUIEnterpriseEnrollmentHost)
223 return &NewWebUI<chromeos::EnterpriseEnrollmentUI>;
224 if (url.host() == chrome::kChromeUIImageBurnerHost) 221 if (url.host() == chrome::kChromeUIImageBurnerHost)
225 return &NewWebUI<ImageBurnUI>; 222 return &NewWebUI<ImageBurnUI>;
226 if (url.host() == chrome::kChromeUIKeyboardOverlayHost) 223 if (url.host() == chrome::kChromeUIKeyboardOverlayHost)
227 return &NewWebUI<KeyboardOverlayUI>; 224 return &NewWebUI<KeyboardOverlayUI>;
228 if (url.host() == chrome::kChromeUILockScreenHost) 225 if (url.host() == chrome::kChromeUILockScreenHost)
229 return &NewWebUI<chromeos::LockScreenUI>; 226 return &NewWebUI<chromeos::LockScreenUI>;
230 if (url.host() == chrome::kChromeUIMobileSetupHost) 227 if (url.host() == chrome::kChromeUIMobileSetupHost)
231 return &NewWebUI<MobileSetupUI>; 228 return &NewWebUI<MobileSetupUI>;
232 if (url.host() == chrome::kChromeUIOobeHost) 229 if (url.host() == chrome::kChromeUIOobeHost)
233 return &NewWebUI<chromeos::OobeUI>; 230 return &NewWebUI<chromeos::OobeUI>;
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 return FlashUI::GetFaviconResourceBytes(); 406 return FlashUI::GetFaviconResourceBytes();
410 407
411 if (page_url.host() == chrome::kChromeUISettingsHost) 408 if (page_url.host() == chrome::kChromeUISettingsHost)
412 return OptionsUI::GetFaviconResourceBytes(); 409 return OptionsUI::GetFaviconResourceBytes();
413 410
414 if (page_url.host() == chrome::kChromeUIPluginsHost) 411 if (page_url.host() == chrome::kChromeUIPluginsHost)
415 return PluginsUI::GetFaviconResourceBytes(); 412 return PluginsUI::GetFaviconResourceBytes();
416 413
417 return NULL; 414 return NULL;
418 } 415 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698