diff options
author | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-27 22:19:31 +0000 |
---|---|---|
committer | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-27 22:19:31 +0000 |
commit | b713fa5924ad131e13dc3dd148e1a3cb2eaed010 (patch) | |
tree | f988ba95569adc3957171ebbac84591c9fe0803c /chrome/browser/custom_home_pages_table_model.cc | |
parent | 0aa5831f558db13af78725f99d11ebce12f27e91 (diff) | |
download | chromium_src-b713fa5924ad131e13dc3dd148e1a3cb2eaed010.zip chromium_src-b713fa5924ad131e13dc3dd148e1a3cb2eaed010.tar.gz chromium_src-b713fa5924ad131e13dc3dd148e1a3cb2eaed010.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/custom_home_pages_table_model.cc')
-rw-r--r-- | chrome/browser/custom_home_pages_table_model.cc | 5 |
1 files changed, 1 insertions, 4 deletions
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); } } |