diff options
author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-26 15:38:56 +0000 |
---|---|---|
committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-26 15:38:56 +0000 |
commit | 44763638ef986a22c76c5842461b050e79c26953 (patch) | |
tree | 17a84055fd2aadfee4eaed4f2e3dd2573776123e /chrome/browser/page_info_model.cc | |
parent | 8a26854e8842101aba84364ff2cb35ec80a51e73 (diff) | |
download | chromium_src-44763638ef986a22c76c5842461b050e79c26953.zip chromium_src-44763638ef986a22c76c5842461b050e79c26953.tar.gz chromium_src-44763638ef986a22c76c5842461b050e79c26953.tar.bz2 |
Remove the title field from the SectionInfo struct. It is unused.
BUG=59030
TEST=None
Review URL: http://codereview.chromium.org/3850003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63897 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/page_info_model.cc')
-rw-r--r-- | chrome/browser/page_info_model.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/chrome/browser/page_info_model.cc b/chrome/browser/page_info_model.cc index 02b1fbc..8b0d983 100644 --- a/chrome/browser/page_info_model.cc +++ b/chrome/browser/page_info_model.cc @@ -150,7 +150,6 @@ PageInfoModel::PageInfoModel(Profile* profile, } sections_.push_back(SectionInfo( icon_id, - l10n_util::GetStringUTF16(IDS_PAGE_INFO_SECURITY_TAB_IDENTITY_TITLE), headline, description, SECTION_INFO_IDENTITY)); @@ -240,7 +239,6 @@ PageInfoModel::PageInfoModel(Profile* profile, if (!description.empty()) { sections_.push_back(SectionInfo( icon_id, - l10n_util::GetStringUTF16(IDS_PAGE_INFO_SECURITY_TAB_CONNECTION_TITLE), headline, description, SECTION_INFO_CONNECTION)); @@ -299,23 +297,19 @@ void PageInfoModel::OnGotVisitCountToHost(HistoryService::Handle handle, visited_before_today = (first_visit_midnight < today); } - string16 title = l10n_util::GetStringUTF16(IDS_PAGE_INFO_SITE_INFO_TITLE); + string16 headline = l10n_util::GetStringUTF16(IDS_PAGE_INFO_SITE_INFO_TITLE); if (!visited_before_today) { sections_.push_back(SectionInfo( ICON_STATE_WARNING_MAJOR, - l10n_util::GetStringUTF16( - IDS_PAGE_INFO_SECURITY_TAB_PERSONAL_HISTORY_TITLE), - title, + headline, l10n_util::GetStringUTF16( IDS_PAGE_INFO_SECURITY_TAB_FIRST_VISITED_TODAY), SECTION_INFO_FIRST_VISIT)); } else { sections_.push_back(SectionInfo( ICON_STATE_INFO, - l10n_util::GetStringUTF16( - IDS_PAGE_INFO_SECURITY_TAB_PERSONAL_HISTORY_TITLE), - title, + headline, l10n_util::GetStringFUTF16( IDS_PAGE_INFO_SECURITY_TAB_VISITED_BEFORE_TODAY, WideToUTF16(base::TimeFormatShortDate(first_visit))), |