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 7976023: Remove the old chrome://extensions page, since the URL now redirects to the new Settings page.BUG... (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
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"
11 #include "chrome/browser/extensions/extensions_ui.h"
12 #include "chrome/browser/history/history_types.h" 11 #include "chrome/browser/history/history_types.h"
13 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/profiles/profile_manager.h" 13 #include "chrome/browser/profiles/profile_manager.h"
15 #include "chrome/browser/ui/webui/bookmarks_ui.h" 14 #include "chrome/browser/ui/webui/bookmarks_ui.h"
16 #include "chrome/browser/ui/webui/bug_report_ui.h" 15 #include "chrome/browser/ui/webui/bug_report_ui.h"
17 #include "chrome/browser/ui/webui/constrained_html_ui.h" 16 #include "chrome/browser/ui/webui/constrained_html_ui.h"
18 #include "chrome/browser/ui/webui/crashes_ui.h" 17 #include "chrome/browser/ui/webui/crashes_ui.h"
19 #include "chrome/browser/ui/webui/devtools_ui.h" 18 #include "chrome/browser/ui/webui/devtools_ui.h"
20 #include "chrome/browser/ui/webui/downloads_ui.h" 19 #include "chrome/browser/ui/webui/downloads_ui.h"
21 #include "chrome/browser/ui/webui/task_manager_ui.h" 20 #include "chrome/browser/ui/webui/task_manager_ui.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 #if defined(OS_WIN) 160 #if defined(OS_WIN)
162 if (url.host() == chrome::kChromeUIConflictsHost) 161 if (url.host() == chrome::kChromeUIConflictsHost)
163 return &NewWebUI<ConflictsUI>; 162 return &NewWebUI<ConflictsUI>;
164 #endif 163 #endif
165 if (url.host() == chrome::kChromeUIDownloadsHost) 164 if (url.host() == chrome::kChromeUIDownloadsHost)
166 return &NewWebUI<DownloadsUI>; 165 return &NewWebUI<DownloadsUI>;
167 if (url.host() == chrome::kChromeUITaskManagerHost) 166 if (url.host() == chrome::kChromeUITaskManagerHost)
168 return &NewWebUI<TaskManagerUI>; 167 return &NewWebUI<TaskManagerUI>;
169 if (url.host() == chrome::kChromeUITextfieldsHost) 168 if (url.host() == chrome::kChromeUITextfieldsHost)
170 return &NewWebUI<TextfieldsUI>; 169 return &NewWebUI<TextfieldsUI>;
171 if (url.host() == chrome::kChromeUIExtensionsHost)
172 return &NewWebUI<ExtensionsUI>;
173 if (url.host() == chrome::kChromeUIHistoryHost) 170 if (url.host() == chrome::kChromeUIHistoryHost)
174 return &NewWebUI<HistoryUI>; 171 return &NewWebUI<HistoryUI>;
175 if (url.host() == chrome::kChromeUIHistory2Host) 172 if (url.host() == chrome::kChromeUIHistory2Host)
176 return &NewWebUI<HistoryUI2>; 173 return &NewWebUI<HistoryUI2>;
177 if (url.host() == chrome::kChromeUIFlagsHost) 174 if (url.host() == chrome::kChromeUIFlagsHost)
178 return &NewWebUI<FlagsUI>; 175 return &NewWebUI<FlagsUI>;
179 if (url.host() == chrome::kChromeUIFlashHost) 176 if (url.host() == chrome::kChromeUIFlashHost)
180 return &NewWebUI<FlashUI>; 177 return &NewWebUI<FlashUI>;
181 #if defined(TOUCH_UI) 178 #if defined(TOUCH_UI)
182 if (url.host() == chrome::kChromeUIKeyboardHost) 179 if (url.host() == chrome::kChromeUIKeyboardHost)
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 if (page_url.host() == chrome::kChromeUIConflictsHost) 361 if (page_url.host() == chrome::kChromeUIConflictsHost)
365 return ConflictsUI::GetFaviconResourceBytes(); 362 return ConflictsUI::GetFaviconResourceBytes();
366 #endif 363 #endif
367 364
368 if (page_url.host() == chrome::kChromeUICrashesHost) 365 if (page_url.host() == chrome::kChromeUICrashesHost)
369 return CrashesUI::GetFaviconResourceBytes(); 366 return CrashesUI::GetFaviconResourceBytes();
370 367
371 if (page_url.host() == chrome::kChromeUIDownloadsHost) 368 if (page_url.host() == chrome::kChromeUIDownloadsHost)
372 return DownloadsUI::GetFaviconResourceBytes(); 369 return DownloadsUI::GetFaviconResourceBytes();
373 370
374 if (page_url.host() == chrome::kChromeUIExtensionsHost)
375 return ExtensionsUI::GetFaviconResourceBytes();
376
377 if (page_url.host() == chrome::kChromeUIHistoryHost) 371 if (page_url.host() == chrome::kChromeUIHistoryHost)
378 return HistoryUI::GetFaviconResourceBytes(); 372 return HistoryUI::GetFaviconResourceBytes();
379 373
380 if (page_url.host() == chrome::kChromeUIHistory2Host) 374 if (page_url.host() == chrome::kChromeUIHistory2Host)
381 return HistoryUI2::GetFaviconResourceBytes(); 375 return HistoryUI2::GetFaviconResourceBytes();
382 376
383 if (page_url.host() == chrome::kChromeUIFlagsHost) 377 if (page_url.host() == chrome::kChromeUIFlagsHost)
384 return FlagsUI::GetFaviconResourceBytes(); 378 return FlagsUI::GetFaviconResourceBytes();
385 379
386 if (page_url.host() == chrome::kChromeUISessionsHost) 380 if (page_url.host() == chrome::kChromeUISessionsHost)
387 return SessionsUI::GetFaviconResourceBytes(); 381 return SessionsUI::GetFaviconResourceBytes();
388 382
389 if (page_url.host() == chrome::kChromeUIFlashHost) 383 if (page_url.host() == chrome::kChromeUIFlashHost)
390 return FlashUI::GetFaviconResourceBytes(); 384 return FlashUI::GetFaviconResourceBytes();
391 385
392 if (page_url.host() == chrome::kChromeUISettingsHost) 386 if (page_url.host() == chrome::kChromeUISettingsHost)
393 return OptionsUI::GetFaviconResourceBytes(); 387 return OptionsUI::GetFaviconResourceBytes();
394 388
395 if (page_url.host() == chrome::kChromeUIPluginsHost) 389 if (page_url.host() == chrome::kChromeUIPluginsHost)
396 return PluginsUI::GetFaviconResourceBytes(); 390 return PluginsUI::GetFaviconResourceBytes();
397 391
398 return NULL; 392 return NULL;
399 } 393 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/extension_list.js ('k') | chrome/browser/ui/webui/options/extension_settings_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698