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

Side by Side Diff: chrome/browser/ui/website_settings/website_settings_ui.cc

Issue 2497673002: Add WebsiteSettings strings for malware/UwS/phishing (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/website_settings/website_settings_ui.h" 5 #include "chrome/browser/ui/website_settings/website_settings_ui.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" 8 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
9 #include "chrome/browser/plugins/plugin_utils.h" 9 #include "chrome/browser/plugins/plugin_utils.h"
10 #include "chrome/browser/plugins/plugins_field_trial.h" 10 #include "chrome/browser/plugins/plugins_field_trial.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 IDS_WEBSITE_SETTINGS_NOT_SECURE_DETAILS); 180 IDS_WEBSITE_SETTINGS_NOT_SECURE_DETAILS);
181 case WebsiteSettings:: 181 case WebsiteSettings::
182 SITE_CONNECTION_STATUS_INSECURE_PASSIVE_SUBRESOURCE: 182 SITE_CONNECTION_STATUS_INSECURE_PASSIVE_SUBRESOURCE:
183 return CreateSecurityDescription( 183 return CreateSecurityDescription(
184 IDS_WEBSITE_SETTINGS_MIXED_CONTENT_SUMMARY, 184 IDS_WEBSITE_SETTINGS_MIXED_CONTENT_SUMMARY,
185 IDS_WEBSITE_SETTINGS_MIXED_CONTENT_DETAILS); 185 IDS_WEBSITE_SETTINGS_MIXED_CONTENT_DETAILS);
186 default: 186 default:
187 return CreateSecurityDescription(IDS_WEBSITE_SETTINGS_SECURE_SUMMARY, 187 return CreateSecurityDescription(IDS_WEBSITE_SETTINGS_SECURE_SUMMARY,
188 IDS_WEBSITE_SETTINGS_SECURE_DETAILS); 188 IDS_WEBSITE_SETTINGS_SECURE_DETAILS);
189 } 189 }
190 case WebsiteSettings::SITE_IDENTITY_STATUS_MALWARE:
191 return CreateSecurityDescription(IDS_WEBSITE_SETTINGS_MALWARE_SUMMARY,
192 IDS_WEBSITE_SETTINGS_MALWARE_DETAILS);
193 case WebsiteSettings::SITE_IDENTITY_STATUS_SOCIAL_ENGINEERING:
194 return CreateSecurityDescription(
195 IDS_WEBSITE_SETTINGS_SOCIAL_ENGINEERING_SUMMARY,
196 IDS_WEBSITE_SETTINGS_SOCIAL_ENGINEERING_DETAILS);
197 case WebsiteSettings::SITE_IDENTITY_STATUS_UNWANTED_SOFTWARE:
198 return CreateSecurityDescription(
199 IDS_WEBSITE_SETTINGS_UNWANTED_SOFTWARE_SUMMARY,
200 IDS_WEBSITE_SETTINGS_UNWANTED_SOFTWARE_DETAILS);
190 case WebsiteSettings:: 201 case WebsiteSettings::
191 SITE_IDENTITY_STATUS_DEPRECATED_SIGNATURE_ALGORITHM_MINOR: 202 SITE_IDENTITY_STATUS_DEPRECATED_SIGNATURE_ALGORITHM_MINOR:
192 case WebsiteSettings:: 203 case WebsiteSettings::
193 SITE_IDENTITY_STATUS_DEPRECATED_SIGNATURE_ALGORITHM_MAJOR: 204 SITE_IDENTITY_STATUS_DEPRECATED_SIGNATURE_ALGORITHM_MAJOR:
194 case WebsiteSettings::SITE_IDENTITY_STATUS_UNKNOWN: 205 case WebsiteSettings::SITE_IDENTITY_STATUS_UNKNOWN:
195 case WebsiteSettings::SITE_IDENTITY_STATUS_NO_CERT: 206 case WebsiteSettings::SITE_IDENTITY_STATUS_NO_CERT:
196 default: 207 default:
197 return CreateSecurityDescription(IDS_WEBSITE_SETTINGS_NOT_SECURE_SUMMARY, 208 return CreateSecurityDescription(IDS_WEBSITE_SETTINGS_NOT_SECURE_SUMMARY,
198 IDS_WEBSITE_SETTINGS_NOT_SECURE_DETAILS); 209 IDS_WEBSITE_SETTINGS_NOT_SECURE_DETAILS);
199 } 210 }
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 } 401 }
391 return resource_id; 402 return resource_id;
392 } 403 }
393 404
394 // static 405 // static
395 const gfx::Image& WebsiteSettingsUI::GetConnectionIcon( 406 const gfx::Image& WebsiteSettingsUI::GetConnectionIcon(
396 WebsiteSettings::SiteConnectionStatus status) { 407 WebsiteSettings::SiteConnectionStatus status) {
397 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 408 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
398 return rb.GetNativeImageNamed(GetConnectionIconID(status)); 409 return rb.GetNativeImageNamed(GetConnectionIconID(status));
399 } 410 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698