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

Side by Side Diff: chrome/browser/dom_ui/dom_ui_factory.cc

Issue 3777005: Rename about:labs to about:flags, part 3/3 (Closed)
Patch Set: comments Created 10 years, 2 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 | « chrome/browser/browser_main.cc ('k') | chrome/browser/dom_ui/flags_ui.h » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/dom_ui/dom_ui_factory.h" 5 #include "chrome/browser/dom_ui/dom_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/browser_thread.h" 9 #include "chrome/browser/browser_thread.h"
9 #include "chrome/browser/dom_ui/bookmarks_ui.h" 10 #include "chrome/browser/dom_ui/bookmarks_ui.h"
10 #include "chrome/browser/dom_ui/bug_report_ui.h" 11 #include "chrome/browser/dom_ui/bug_report_ui.h"
11 #include "chrome/browser/dom_ui/downloads_ui.h" 12 #include "chrome/browser/dom_ui/downloads_ui.h"
12 #include "chrome/browser/dom_ui/devtools_ui.h" 13 #include "chrome/browser/dom_ui/devtools_ui.h"
13 #include "chrome/browser/dom_ui/history_ui.h" 14 #include "chrome/browser/dom_ui/history_ui.h"
14 #include "chrome/browser/dom_ui/history2_ui.h" 15 #include "chrome/browser/dom_ui/history2_ui.h"
15 #include "chrome/browser/dom_ui/html_dialog_ui.h" 16 #include "chrome/browser/dom_ui/html_dialog_ui.h"
16 #if defined(TOUCH_UI) 17 #if defined(TOUCH_UI)
17 #include "chrome/browser/dom_ui/keyboard_ui.h" 18 #include "chrome/browser/dom_ui/keyboard_ui.h"
18 #endif 19 #endif
19 #include "chrome/browser/dom_ui/labs_ui.h" 20 #include "chrome/browser/dom_ui/flags_ui.h"
20 #include "chrome/browser/dom_ui/net_internals_ui.h" 21 #include "chrome/browser/dom_ui/net_internals_ui.h"
21 #include "chrome/browser/dom_ui/new_tab_ui.h" 22 #include "chrome/browser/dom_ui/new_tab_ui.h"
22 #include "chrome/browser/dom_ui/plugins_ui.h" 23 #include "chrome/browser/dom_ui/plugins_ui.h"
23 #include "chrome/browser/dom_ui/print_preview_ui.h" 24 #include "chrome/browser/dom_ui/print_preview_ui.h"
24 #include "chrome/browser/dom_ui/remoting_ui.h" 25 #include "chrome/browser/dom_ui/remoting_ui.h"
25 #include "chrome/browser/dom_ui/options/options_ui.h" 26 #include "chrome/browser/dom_ui/options/options_ui.h"
26 #include "chrome/browser/dom_ui/slideshow_ui.h" 27 #include "chrome/browser/dom_ui/slideshow_ui.h"
27 #include "chrome/browser/extensions/extension_dom_ui.h" 28 #include "chrome/browser/extensions/extension_dom_ui.h"
28 #include "chrome/browser/extensions/extensions_service.h" 29 #include "chrome/browser/extensions/extensions_service.h"
29 #include "chrome/browser/extensions/extensions_ui.h" 30 #include "chrome/browser/extensions/extensions_ui.h"
30 #include "chrome/browser/labs.h"
31 #include "chrome/browser/printing/print_dialog_cloud.h" 31 #include "chrome/browser/printing/print_dialog_cloud.h"
32 #include "chrome/browser/profile.h" 32 #include "chrome/browser/profile.h"
33 #include "chrome/browser/tab_contents/tab_contents.h" 33 #include "chrome/browser/tab_contents/tab_contents.h"
34 #include "chrome/common/chrome_switches.h" 34 #include "chrome/common/chrome_switches.h"
35 #include "chrome/common/extensions/extension_constants.h" 35 #include "chrome/common/extensions/extension_constants.h"
36 #include "chrome/common/url_constants.h" 36 #include "chrome/common/url_constants.h"
37 #include "googleurl/src/gurl.h" 37 #include "googleurl/src/gurl.h"
38 38
39 #if defined(OS_CHROMEOS) 39 #if defined(OS_CHROMEOS)
40 #include "chrome/browser/chromeos/dom_ui/imageburner_ui.h" 40 #include "chrome/browser/chromeos/dom_ui/imageburner_ui.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 if (url.host() == chrome::kChromeUIDevToolsHost) 121 if (url.host() == chrome::kChromeUIDevToolsHost)
122 return &NewDOMUI<DevToolsUI>; 122 return &NewDOMUI<DevToolsUI>;
123 if (url.host() == chrome::kChromeUIDownloadsHost) 123 if (url.host() == chrome::kChromeUIDownloadsHost)
124 return &NewDOMUI<DownloadsUI>; 124 return &NewDOMUI<DownloadsUI>;
125 if (url.host() == chrome::kChromeUIExtensionsHost) 125 if (url.host() == chrome::kChromeUIExtensionsHost)
126 return &NewDOMUI<ExtensionsUI>; 126 return &NewDOMUI<ExtensionsUI>;
127 if (url.host() == chrome::kChromeUIHistoryHost) 127 if (url.host() == chrome::kChromeUIHistoryHost)
128 return &NewDOMUI<HistoryUI>; 128 return &NewDOMUI<HistoryUI>;
129 if (url.host() == chrome::kChromeUIHistory2Host) 129 if (url.host() == chrome::kChromeUIHistory2Host)
130 return &NewDOMUI<HistoryUI2>; 130 return &NewDOMUI<HistoryUI2>;
131 if (about_labs::IsEnabled() && url.host() == chrome::kChromeUIFlagsHost) 131 if (about_flags::IsEnabled() && url.host() == chrome::kChromeUIFlagsHost)
132 return &NewDOMUI<LabsUI>; 132 return &NewDOMUI<FlagsUI>;
133 #if defined(TOUCH_UI) 133 #if defined(TOUCH_UI)
134 if (url.host() == chrome::kChromeUIKeyboardHost) 134 if (url.host() == chrome::kChromeUIKeyboardHost)
135 return &NewDOMUI<KeyboardUI>; 135 return &NewDOMUI<KeyboardUI>;
136 #endif 136 #endif
137 if (url.host() == chrome::kChromeUINetInternalsHost) 137 if (url.host() == chrome::kChromeUINetInternalsHost)
138 return &NewDOMUI<NetInternalsUI>; 138 return &NewDOMUI<NetInternalsUI>;
139 if (url.host() == chrome::kChromeUIPluginsHost) 139 if (url.host() == chrome::kChromeUIPluginsHost)
140 return &NewDOMUI<PluginsUI>; 140 return &NewDOMUI<PluginsUI>;
141 #if defined(ENABLE_REMOTING) 141 #if defined(ENABLE_REMOTING)
142 if (url.host() == chrome::kChromeUIRemotingHost) { 142 if (url.host() == chrome::kChromeUIRemotingHost) {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 259
260 if (page_url.host() == chrome::kChromeUIExtensionsHost) 260 if (page_url.host() == chrome::kChromeUIExtensionsHost)
261 return ExtensionsUI::GetFaviconResourceBytes(); 261 return ExtensionsUI::GetFaviconResourceBytes();
262 262
263 if (page_url.host() == chrome::kChromeUIHistoryHost) 263 if (page_url.host() == chrome::kChromeUIHistoryHost)
264 return HistoryUI::GetFaviconResourceBytes(); 264 return HistoryUI::GetFaviconResourceBytes();
265 265
266 if (page_url.host() == chrome::kChromeUIHistory2Host) 266 if (page_url.host() == chrome::kChromeUIHistory2Host)
267 return HistoryUI2::GetFaviconResourceBytes(); 267 return HistoryUI2::GetFaviconResourceBytes();
268 268
269 if (about_labs::IsEnabled() && page_url.host() == chrome::kChromeUIFlagsHost) 269 if (about_flags::IsEnabled() && page_url.host() == chrome::kChromeUIFlagsHost)
270 return LabsUI::GetFaviconResourceBytes(); 270 return FlagsUI::GetFaviconResourceBytes();
271 271
272 if (page_url.host() == chrome::kChromeUISettingsHost) 272 if (page_url.host() == chrome::kChromeUISettingsHost)
273 return OptionsUI::GetFaviconResourceBytes(); 273 return OptionsUI::GetFaviconResourceBytes();
274 274
275 if (page_url.host() == chrome::kChromeUIPluginsHost) 275 if (page_url.host() == chrome::kChromeUIPluginsHost)
276 return PluginsUI::GetFaviconResourceBytes(); 276 return PluginsUI::GetFaviconResourceBytes();
277 277
278 #if defined(ENABLE_REMOTING) 278 #if defined(ENABLE_REMOTING)
279 if (page_url.host() == chrome::kChromeUIRemotingHost) 279 if (page_url.host() == chrome::kChromeUIRemotingHost)
280 return RemotingUI::GetFaviconResourceBytes(); 280 return RemotingUI::GetFaviconResourceBytes();
281 #endif 281 #endif
282 282
283 return NULL; 283 return NULL;
284 } 284 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/dom_ui/flags_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698