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

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

Issue 13047006: Enable about:crashes in Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // after the host name. 193 // after the host name.
194 // All platform builds of Chrome will need to have a cloud printing 194 // All platform builds of Chrome will need to have a cloud printing
195 // dialog as backup. It's just that on Chrome OS, it's the only 195 // dialog as backup. It's just that on Chrome OS, it's the only
196 // print dialog. 196 // print dialog.
197 if (url.host() == chrome::kChromeUICloudPrintResourcesHost) 197 if (url.host() == chrome::kChromeUICloudPrintResourcesHost)
198 return &NewWebUI<ExternalWebDialogUI>; 198 return &NewWebUI<ExternalWebDialogUI>;
199 if (url.host() == chrome::kChromeUICloudPrintSetupHost) 199 if (url.host() == chrome::kChromeUICloudPrintSetupHost)
200 return &NewWebUI<WebDialogUI>; 200 return &NewWebUI<WebDialogUI>;
201 if (url.spec() == chrome::kChromeUIConstrainedHTMLTestURL) 201 if (url.spec() == chrome::kChromeUIConstrainedHTMLTestURL)
202 return &NewWebUI<ConstrainedWebDialogUI>; 202 return &NewWebUI<ConstrainedWebDialogUI>;
203 if (url.host() == chrome::kChromeUICrashesHost)
204 return &NewWebUI<CrashesUI>;
203 if (url.host() == chrome::kChromeUIFlagsHost) 205 if (url.host() == chrome::kChromeUIFlagsHost)
204 return &NewWebUI<FlagsUI>; 206 return &NewWebUI<FlagsUI>;
205 if (url.host() == chrome::kChromeUIHistoryFrameHost) 207 if (url.host() == chrome::kChromeUIHistoryFrameHost)
206 return &NewWebUI<HistoryUI>; 208 return &NewWebUI<HistoryUI>;
207 if (url.host() == chrome::kChromeUIInstantHost) 209 if (url.host() == chrome::kChromeUIInstantHost)
208 return &NewWebUI<InstantUI>; 210 return &NewWebUI<InstantUI>;
209 if (url.host() == chrome::kChromeUIManagedUserPassphrasePageHost) 211 if (url.host() == chrome::kChromeUIManagedUserPassphrasePageHost)
210 return &NewWebUI<ConstrainedWebDialogUI>; 212 return &NewWebUI<ConstrainedWebDialogUI>;
211 if (url.host() == chrome::kChromeUIMemoryInternalsHost && 213 if (url.host() == chrome::kChromeUIMemoryInternalsHost &&
212 CommandLine::ForCurrentProcess()->HasSwitch( 214 CommandLine::ForCurrentProcess()->HasSwitch(
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 return &NewWebUI<WelcomeUI>; 252 return &NewWebUI<WelcomeUI>;
251 #else 253 #else
252 // AppLauncherPage is not needed on Android. 254 // AppLauncherPage is not needed on Android.
253 if (url.host() == chrome::kChromeUIAppLauncherPageHost && 255 if (url.host() == chrome::kChromeUIAppLauncherPageHost &&
254 profile && profile->GetExtensionService()) { 256 profile && profile->GetExtensionService()) {
255 return &NewWebUI<AppLauncherPageUI>; 257 return &NewWebUI<AppLauncherPageUI>;
256 } 258 }
257 // Bookmarks are part of NTP on Android. 259 // Bookmarks are part of NTP on Android.
258 if (url.host() == chrome::kChromeUIBookmarksHost) 260 if (url.host() == chrome::kChromeUIBookmarksHost)
259 return &NewWebUI<BookmarksUI>; 261 return &NewWebUI<BookmarksUI>;
260 // Crashes page not supported on Android for now.
261 if (url.host() == chrome::kChromeUICrashesHost)
262 return &NewWebUI<CrashesUI>;
263 if (url.host() == chrome::kChromeUIDevToolsHost) 262 if (url.host() == chrome::kChromeUIDevToolsHost)
264 return &NewWebUI<DevToolsUI>; 263 return &NewWebUI<DevToolsUI>;
265 // Downloads list on Android uses the built-in download manager. 264 // Downloads list on Android uses the built-in download manager.
266 if (url.host() == chrome::kChromeUIDownloadsHost) 265 if (url.host() == chrome::kChromeUIDownloadsHost)
267 return &NewWebUI<DownloadsUI>; 266 return &NewWebUI<DownloadsUI>;
268 // Feedback on Android uses the built-in feedback app. 267 // Feedback on Android uses the built-in feedback app.
269 if (url.host() == chrome::kChromeUIFeedbackHost) 268 if (url.host() == chrome::kChromeUIFeedbackHost)
270 return &NewWebUI<FeedbackUI>; 269 return &NewWebUI<FeedbackUI>;
271 // Flash is not available on android. 270 // Flash is not available on android.
272 if (url.host() == chrome::kChromeUIFlashHost) 271 if (url.host() == chrome::kChromeUIFlashHost)
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 if (page_url.host() == chrome::kChromeUISettingsFrameHost) 570 if (page_url.host() == chrome::kChromeUISettingsFrameHost)
572 return options::OptionsUI::GetFaviconResourceBytes(scale_factor); 571 return options::OptionsUI::GetFaviconResourceBytes(scale_factor);
573 572
574 // Android doesn't use the plugins pages. 573 // Android doesn't use the plugins pages.
575 if (page_url.host() == chrome::kChromeUIPluginsHost) 574 if (page_url.host() == chrome::kChromeUIPluginsHost)
576 return PluginsUI::GetFaviconResourceBytes(scale_factor); 575 return PluginsUI::GetFaviconResourceBytes(scale_factor);
577 #endif 576 #endif
578 577
579 return NULL; 578 return NULL;
580 } 579 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698