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

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

Issue 7841022: Revert 99883 - Completely disable about:flags (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | 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) 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 if (url.host() == chrome::kChromeUITaskManagerHost) 173 if (url.host() == chrome::kChromeUITaskManagerHost)
174 return &NewWebUI<TaskManagerUI>; 174 return &NewWebUI<TaskManagerUI>;
175 if (url.host() == chrome::kChromeUITextfieldsHost) 175 if (url.host() == chrome::kChromeUITextfieldsHost)
176 return &NewWebUI<TextfieldsUI>; 176 return &NewWebUI<TextfieldsUI>;
177 if (url.host() == chrome::kChromeUIExtensionsHost) 177 if (url.host() == chrome::kChromeUIExtensionsHost)
178 return &NewWebUI<ExtensionsUI>; 178 return &NewWebUI<ExtensionsUI>;
179 if (url.host() == chrome::kChromeUIHistoryHost) 179 if (url.host() == chrome::kChromeUIHistoryHost)
180 return &NewWebUI<HistoryUI>; 180 return &NewWebUI<HistoryUI>;
181 if (url.host() == chrome::kChromeUIHistory2Host) 181 if (url.host() == chrome::kChromeUIHistory2Host)
182 return &NewWebUI<HistoryUI2>; 182 return &NewWebUI<HistoryUI2>;
183 // TODO(thakis): Reenable. 183 if (url.host() == chrome::kChromeUIFlagsHost)
184 //if (url.host() == chrome::kChromeUIFlagsHost) 184 return &NewWebUI<FlagsUI>;
185 // return &NewWebUI<FlagsUI>;
186 if (url.host() == chrome::kChromeUIFlashHost) 185 if (url.host() == chrome::kChromeUIFlashHost)
187 return &NewWebUI<FlashUI>; 186 return &NewWebUI<FlashUI>;
188 #if defined(TOUCH_UI) 187 #if defined(TOUCH_UI)
189 if (url.host() == chrome::kChromeUIKeyboardHost) 188 if (url.host() == chrome::kChromeUIKeyboardHost)
190 return &NewWebUI<KeyboardUI>; 189 return &NewWebUI<KeyboardUI>;
191 #endif 190 #endif
192 if (url.host() == chrome::kChromeUIGpuInternalsHost) 191 if (url.host() == chrome::kChromeUIGpuInternalsHost)
193 return &NewWebUI<GpuInternalsUI>; 192 return &NewWebUI<GpuInternalsUI>;
194 if (url.host() == chrome::kChromeUIMediaInternalsHost) 193 if (url.host() == chrome::kChromeUIMediaInternalsHost)
195 return &NewWebUI<MediaInternalsUI>; 194 return &NewWebUI<MediaInternalsUI>;
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 380
382 if (page_url.host() == chrome::kChromeUIExtensionsHost) 381 if (page_url.host() == chrome::kChromeUIExtensionsHost)
383 return ExtensionsUI::GetFaviconResourceBytes(); 382 return ExtensionsUI::GetFaviconResourceBytes();
384 383
385 if (page_url.host() == chrome::kChromeUIHistoryHost) 384 if (page_url.host() == chrome::kChromeUIHistoryHost)
386 return HistoryUI::GetFaviconResourceBytes(); 385 return HistoryUI::GetFaviconResourceBytes();
387 386
388 if (page_url.host() == chrome::kChromeUIHistory2Host) 387 if (page_url.host() == chrome::kChromeUIHistory2Host)
389 return HistoryUI2::GetFaviconResourceBytes(); 388 return HistoryUI2::GetFaviconResourceBytes();
390 389
391 // TODO(thakis): Reenable. 390 if (page_url.host() == chrome::kChromeUIFlagsHost)
392 //if (page_url.host() == chrome::kChromeUIFlagsHost) 391 return FlagsUI::GetFaviconResourceBytes();
393 // return FlagsUI::GetFaviconResourceBytes();
394 392
395 if (page_url.host() == chrome::kChromeUISessionsHost) 393 if (page_url.host() == chrome::kChromeUISessionsHost)
396 return SessionsUI::GetFaviconResourceBytes(); 394 return SessionsUI::GetFaviconResourceBytes();
397 395
398 if (page_url.host() == chrome::kChromeUIFlashHost) 396 if (page_url.host() == chrome::kChromeUIFlashHost)
399 return FlashUI::GetFaviconResourceBytes(); 397 return FlashUI::GetFaviconResourceBytes();
400 398
401 if (page_url.host() == chrome::kChromeUISettingsHost) 399 if (page_url.host() == chrome::kChromeUISettingsHost)
402 return OptionsUI::GetFaviconResourceBytes(); 400 return OptionsUI::GetFaviconResourceBytes();
403 401
404 if (page_url.host() == chrome::kChromeUIPluginsHost) 402 if (page_url.host() == chrome::kChromeUIPluginsHost)
405 return PluginsUI::GetFaviconResourceBytes(); 403 return PluginsUI::GetFaviconResourceBytes();
406 404
407 return NULL; 405 return NULL;
408 } 406 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698