Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(580)

Side by Side Diff: chrome/browser/page_info_model.cc

Issue 2095006: Revert 47347 - (Original patch reviewed at http://codereview.chromium.org/206... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/external_tab_container.cc ('k') | chrome/browser/ssl/ssl_browser_tests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/page_info_model.h" 5 #include "chrome/browser/page_info_model.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 description.assign( 131 description.assign(
132 l10n_util::GetStringFUTF16( 132 l10n_util::GetStringFUTF16(
133 IDS_PAGE_INFO_SECURITY_TAB_WEAK_ENCRYPTION_CONNECTION_TEXT, 133 IDS_PAGE_INFO_SECURITY_TAB_WEAK_ENCRYPTION_CONNECTION_TEXT,
134 subject_name)); 134 subject_name));
135 } else { 135 } else {
136 description.assign( 136 description.assign(
137 l10n_util::GetStringFUTF16( 137 l10n_util::GetStringFUTF16(
138 IDS_PAGE_INFO_SECURITY_TAB_ENCRYPTED_CONNECTION_TEXT, 138 IDS_PAGE_INFO_SECURITY_TAB_ENCRYPTED_CONNECTION_TEXT,
139 subject_name, 139 subject_name,
140 IntToString16(ssl.security_bits()))); 140 IntToString16(ssl.security_bits())));
141 if (ssl.displayed_mixed_content() || ssl.ran_mixed_content()) { 141 if (ssl.has_mixed_content()) {
142 state = false; 142 state = false;
143 description.assign( 143 description.assign(
144 l10n_util::GetStringFUTF16( 144 l10n_util::GetStringFUTF16(
145 IDS_PAGE_INFO_SECURITY_TAB_ENCRYPTED_SENTENCE_LINK, 145 IDS_PAGE_INFO_SECURITY_TAB_ENCRYPTED_SENTENCE_LINK,
146 description, 146 description,
147 l10n_util::GetStringUTF16(ssl.ran_mixed_content() ? 147 l10n_util::GetStringUTF16(
148 IDS_PAGE_INFO_SECURITY_TAB_ENCRYPTED_MIXED_CONTENT_ERROR :
149 IDS_PAGE_INFO_SECURITY_TAB_ENCRYPTED_MIXED_CONTENT_WARNING))); 148 IDS_PAGE_INFO_SECURITY_TAB_ENCRYPTED_MIXED_CONTENT_WARNING)));
150 } 149 }
151 } 150 }
152 sections_.push_back(SectionInfo( 151 sections_.push_back(SectionInfo(
153 state, 152 state,
154 l10n_util::GetStringUTF16(IDS_PAGE_INFO_SECURITY_TAB_CONNECTION_TITLE), 153 l10n_util::GetStringUTF16(IDS_PAGE_INFO_SECURITY_TAB_CONNECTION_TITLE),
155 head_line, 154 head_line,
156 description)); 155 description));
157 156
158 // Request the number of visits. 157 // Request the number of visits.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 IDS_PAGE_INFO_SECURITY_TAB_VISITED_BEFORE_TODAY, 208 IDS_PAGE_INFO_SECURITY_TAB_VISITED_BEFORE_TODAY,
210 WideToUTF16(base::TimeFormatShortDate(first_visit))))); 209 WideToUTF16(base::TimeFormatShortDate(first_visit)))));
211 } 210 }
212 observer_->ModelChanged(); 211 observer_->ModelChanged();
213 } 212 }
214 213
215 // static 214 // static
216 void PageInfoModel::RegisterPrefs(PrefService* prefs) { 215 void PageInfoModel::RegisterPrefs(PrefService* prefs) {
217 prefs->RegisterDictionaryPref(prefs::kPageInfoWindowPlacement); 216 prefs->RegisterDictionaryPref(prefs::kPageInfoWindowPlacement);
218 } 217 }
OLDNEW
« no previous file with comments | « chrome/browser/external_tab_container.cc ('k') | chrome/browser/ssl/ssl_browser_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698