summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_about_handler.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-23 04:26:56 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-23 04:26:56 +0000
commita048ad27ff27463bb5b883e7158a1bcb59684cf2 (patch)
tree059779f66b924ee9ca716b1197044282df5bb734 /chrome/browser/browser_about_handler.cc
parent67009b5a197b0685ac25bf1122d77bb08d19e7e4 (diff)
downloadchromium_src-a048ad27ff27463bb5b883e7158a1bcb59684cf2.zip
chromium_src-a048ad27ff27463bb5b883e7158a1bcb59684cf2.tar.gz
chromium_src-a048ad27ff27463bb5b883e7158a1bcb59684cf2.tar.bz2
get rid of old options pages
BUG=none TEST=manual, compile, migrated tests Review URL: https://chromiumcodereview.appspot.com/9814030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128406 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_about_handler.cc')
-rw-r--r--chrome/browser/browser_about_handler.cc24
1 files changed, 6 insertions, 18 deletions
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index 75a1f6c..84247a8 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -103,9 +103,6 @@ bool WillHandleBrowserAboutURL(GURL* url,
if (!url->SchemeIs(chrome::kChromeUIScheme))
return false;
- CommandLine* cl = CommandLine::ForCurrentProcess();
- bool enableUberPage = !cl->HasSwitch(switches::kDisableUberPage);
-
std::string host(url->host());
std::string path;
// Replace about with chrome-urls.
@@ -122,29 +119,20 @@ bool WillHandleBrowserAboutURL(GURL* url,
host = chrome::kChromeUISyncInternalsHost;
// Redirect chrome://extensions.
} else if (host == chrome::kChromeUIExtensionsHost) {
- if (enableUberPage) {
- host = chrome::kChromeUIUberHost;
- path = chrome::kChromeUIExtensionsHost + url->path();
- } else {
- host = chrome::kChromeUISettingsHost;
- path = chrome::kExtensionsSubPage;
- }
+ host = chrome::kChromeUIUberHost;
+ path = chrome::kChromeUIExtensionsHost + url->path();
} else if (host == chrome::kChromeUIHistoryHost) {
- if (enableUberPage) {
- host = chrome::kChromeUIUberHost;
- path = chrome::kChromeUIHistoryHost + url->path();
- } else {
- host = chrome::kChromeUIHistoryFrameHost;
- }
+ host = chrome::kChromeUIUberHost;
+ path = chrome::kChromeUIHistoryHost + url->path();
// Redirect chrome://settings/extensions.
// TODO(csilv): Fix all code paths for this page once Uber page is enabled
// permanently.
- } else if (enableUberPage && host == chrome::kChromeUISettingsHost &&
+ } else if (host == chrome::kChromeUISettingsHost &&
url->path() == std::string("/") + chrome::kExtensionsSubPage) {
host = chrome::kChromeUIUberHost;
path = chrome::kChromeUIExtensionsHost;
// Redirect chrome://settings
- } else if (enableUberPage && host == chrome::kChromeUISettingsHost) {
+ } else if (host == chrome::kChromeUISettingsHost) {
host = chrome::kChromeUIUberHost;
path = chrome::kChromeUISettingsHost + url->path();
}