diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-05 20:17:00 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-05 20:17:00 +0000 |
commit | 0ed164e1bbe8bde1b5be616c10ef46388ea78079 (patch) | |
tree | f3245ca128c4240c37c47a7501faa985951e634e /chrome/browser/dom_ui | |
parent | 0654b7ba355aab9435a54cf9b5a7397ffc308b45 (diff) | |
download | chromium_src-0ed164e1bbe8bde1b5be616c10ef46388ea78079.zip chromium_src-0ed164e1bbe8bde1b5be616c10ef46388ea78079.tar.gz chromium_src-0ed164e1bbe8bde1b5be616c10ef46388ea78079.tar.bz2 |
Remove the TAB_CONTENTS_NEW_TAB_UI tab contents type. This was not actually used
now, so everytime this appears was dead code.
Review URL: http://codereview.chromium.org/39200
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11024 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui')
-rw-r--r-- | chrome/browser/dom_ui/new_tab_ui.cc | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/chrome/browser/dom_ui/new_tab_ui.cc b/chrome/browser/dom_ui/new_tab_ui.cc index 34b3ba6..79ce95a 100644 --- a/chrome/browser/dom_ui/new_tab_ui.cc +++ b/chrome/browser/dom_ui/new_tab_ui.cc @@ -27,6 +27,7 @@ #include "chrome/common/pref_names.h" #include "chrome/common/pref_service.h" #include "chrome/common/resource_bundle.h" +#include "chrome/common/url_constants.h" #ifdef CHROME_PERSONALIZATION #include "chrome/personalization/personalization.h" #endif @@ -35,9 +36,6 @@ #include "grit/generated_resources.h" #include "grit/locale_settings.h" -// NewTabUI is accessible from chrome-ui://newtab. -static const char kNewTabHost[] = "newtab"; - // The number of most visited pages we show. const int kMostVisitedPages = 9; @@ -175,7 +173,7 @@ void SetURLTitleAndDirection(DictionaryValue* dictionary, // NewTabHTMLSource NewTabHTMLSource::NewTabHTMLSource() - : DataSource(kNewTabHost, MessageLoop::current()) { + : DataSource(chrome::kNewTabHost, MessageLoop::current()) { } void NewTabHTMLSource::StartDataRequest(const std::string& path, @@ -254,7 +252,7 @@ void NewTabHTMLSource::StartDataRequest(const std::string& path, // IncognitoTabHTMLSource IncognitoTabHTMLSource::IncognitoTabHTMLSource() - : DataSource(kNewTabHost, MessageLoop::current()) { + : DataSource(chrome::kNewTabHost, MessageLoop::current()) { } void IncognitoTabHTMLSource::StartDataRequest(const std::string& path, @@ -844,10 +842,7 @@ void NewTabUI::Init() { // static GURL NewTabUI::GetBaseURL() { - std::string url = DOMUIContents::GetScheme(); - url += "://"; - url += kNewTabHost; - return GURL(url); + return GURL(chrome::kChromeUINewTabURL); } void NewTabUI::SetInitialFocus() { |