From b713fa5924ad131e13dc3dd148e1a3cb2eaed010 Mon Sep 17 00:00:00 2001 From: "stuartmorgan@chromium.org" Date: Tue, 27 Jul 2010 22:19:31 +0000 Subject: Revert 53849 - Implement most of the startup page controls in DOMUI prefs Hooks up display of startup pages, removal of pages, and setting the startup pages to the currently open tabs. Uses a select for now, but will eventually be replaced with a List so the favicons can be displayed. BUG=48713 TEST=Startup pages can be viewed, removed, and set to current in DOMUI prefs. Review URL: http://codereview.chromium.org/3046025 TBR=stuartmorgan@chromium.org Review URL: http://codereview.chromium.org/3058018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53857 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/custom_home_pages_table_model.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'chrome/browser/custom_home_pages_table_model.cc') diff --git a/chrome/browser/custom_home_pages_table_model.cc b/chrome/browser/custom_home_pages_table_model.cc index 2f2f38f..446aea5 100644 --- a/chrome/browser/custom_home_pages_table_model.cc +++ b/chrome/browser/custom_home_pages_table_model.cc @@ -14,7 +14,6 @@ #include "chrome/browser/profile.h" #include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/common/pref_names.h" -#include "chrome/common/url_constants.h" #include "gfx/codec/png_codec.h" #include "grit/app_resources.h" #include "grit/generated_resources.h" @@ -85,9 +84,7 @@ void CustomHomePagesTableModel::SetToCurrentlyOpenPages() { for (int tab_index = 0; tab_index < browser->tab_count(); ++tab_index) { const GURL url = browser->GetTabContentsAt(tab_index)->GetURL(); - if (!url.is_empty() && - !(url.SchemeIs(chrome::kChromeUIScheme) && - url.host() == chrome::kChromeUIOptionsHost)) + if (!url.is_empty()) Add(add_index++, url); } } -- cgit v1.1