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

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

Issue 10539169: Prototype version of the first-run dialog for Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed remarks from the review. Created 8 years, 6 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 #if defined(USE_AURA) 73 #if defined(USE_AURA)
74 #include "chrome/browser/ui/webui/gesture_config_ui.h" 74 #include "chrome/browser/ui/webui/gesture_config_ui.h"
75 #endif 75 #endif
76 76
77 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) 77 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
78 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" 78 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h"
79 #endif 79 #endif
80 80
81 #if defined(OS_WIN) 81 #if defined(OS_WIN)
82 #include "chrome/browser/ui/webui/conflicts_ui.h" 82 #include "chrome/browser/ui/webui/conflicts_ui.h"
83 #include "chrome/browser/ui/webui/metroizer_ui_win.h"
83 #endif 84 #endif
84 85
85 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) 86 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA)
86 #include "chrome/browser/ui/webui/certificate_viewer_ui.h" 87 #include "chrome/browser/ui/webui/certificate_viewer_ui.h"
87 #endif 88 #endif
88 89
89 using content::WebUI; 90 using content::WebUI;
90 using content::WebUIController; 91 using content::WebUIController;
91 using ui::ConstrainedWebDialogUI; 92 using ui::ConstrainedWebDialogUI;
92 using ui::ExternalWebDialogUI; 93 using ui::ExternalWebDialogUI;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 #if defined(ENABLE_PRINTING) 242 #if defined(ENABLE_PRINTING)
242 if (url.host() == chrome::kChromeUIPrintHost && 243 if (url.host() == chrome::kChromeUIPrintHost &&
243 !g_browser_process->local_state()->GetBoolean( 244 !g_browser_process->local_state()->GetBoolean(
244 prefs::kPrintPreviewDisabled)) { 245 prefs::kPrintPreviewDisabled)) {
245 return &NewWebUI<PrintPreviewUI>; 246 return &NewWebUI<PrintPreviewUI>;
246 } 247 }
247 #endif 248 #endif
248 #if defined(OS_WIN) 249 #if defined(OS_WIN)
249 if (url.host() == chrome::kChromeUIConflictsHost) 250 if (url.host() == chrome::kChromeUIConflictsHost)
250 return &NewWebUI<ConflictsUI>; 251 return &NewWebUI<ConflictsUI>;
252 if (url.host() == chrome::kChromeUIMetroFlowHost)
253 return &NewWebUI<MetroizerUI>;
251 #endif 254 #endif
252 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA) 255 #if (defined(USE_NSS) || defined(USE_OPENSSL)) && defined(USE_AURA)
253 if (url.host() == chrome::kChromeUICertificateViewerHost) 256 if (url.host() == chrome::kChromeUICertificateViewerHost)
254 return &NewWebUI<CertificateViewerUI>; 257 return &NewWebUI<CertificateViewerUI>;
255 #endif 258 #endif
256 #if defined(OS_CHROMEOS) 259 #if defined(OS_CHROMEOS)
257 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost) 260 if (url.host() == chrome::kChromeUIChooseMobileNetworkHost)
258 return &NewWebUI<chromeos::ChooseMobileNetworkUI>; 261 return &NewWebUI<chromeos::ChooseMobileNetworkUI>;
259 if (url.host() == chrome::kChromeUIImageBurnerHost) 262 if (url.host() == chrome::kChromeUIImageBurnerHost)
260 return &NewWebUI<ImageBurnUI>; 263 return &NewWebUI<ImageBurnUI>;
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Android doesn't use the plugins pages. 509 // Android doesn't use the plugins pages.
507 if (page_url.host() == chrome::kChromeUIPluginsHost) 510 if (page_url.host() == chrome::kChromeUIPluginsHost)
508 return PluginsUI::GetFaviconResourceBytes(); 511 return PluginsUI::GetFaviconResourceBytes();
509 #endif 512 #endif
510 513
511 return NULL; 514 return NULL;
512 } 515 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698