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

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

Issue 2440183002: Initialize all fields in WebsiteSettings. (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
« no previous file with comments | « chrome/browser/ui/website_settings/website_settings.h ('k') | no next file » | 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) 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.h" 5 #include "chrome/browser/ui/website_settings/website_settings.h"
6 6
7 #include <openssl/ssl.h> 7 #include <openssl/ssl.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 WebsiteSettingsUI* ui, 253 WebsiteSettingsUI* ui,
254 Profile* profile, 254 Profile* profile,
255 TabSpecificContentSettings* tab_specific_content_settings, 255 TabSpecificContentSettings* tab_specific_content_settings,
256 content::WebContents* web_contents, 256 content::WebContents* web_contents,
257 const GURL& url, 257 const GURL& url,
258 const SecurityStateModel::SecurityInfo& security_info) 258 const SecurityStateModel::SecurityInfo& security_info)
259 : TabSpecificContentSettings::SiteDataObserver( 259 : TabSpecificContentSettings::SiteDataObserver(
260 tab_specific_content_settings), 260 tab_specific_content_settings),
261 content::WebContentsObserver(web_contents), 261 content::WebContentsObserver(web_contents),
262 ui_(ui), 262 ui_(ui),
263 show_info_bar_(false),
264 site_url_(url), 263 site_url_(url),
265 site_identity_status_(SITE_IDENTITY_STATUS_UNKNOWN),
266 site_connection_status_(SITE_CONNECTION_STATUS_UNKNOWN),
267 content_settings_(HostContentSettingsMapFactory::GetForProfile(profile)), 264 content_settings_(HostContentSettingsMapFactory::GetForProfile(profile)),
268 chrome_ssl_host_state_delegate_( 265 chrome_ssl_host_state_delegate_(
269 ChromeSSLHostStateDelegateFactory::GetForProfile(profile)), 266 ChromeSSLHostStateDelegateFactory::GetForProfile(profile)),
270 did_revoke_user_ssl_decisions_(false),
raymes 2016/10/24 01:46:27 I realize there is no clear rules in the style gui
alshabalin 2016/10/24 08:33:49 Done.
271 profile_(profile) { 267 profile_(profile) {
272 Init(url, security_info); 268 Init(url, security_info);
273 269
274 PresentSitePermissions(); 270 PresentSitePermissions();
275 PresentSiteData(); 271 PresentSiteData();
276 PresentSiteIdentity(); 272 PresentSiteIdentity();
277 273
278 // Every time the Website Settings UI is opened a |WebsiteSettings| object is 274 // Every time the Website Settings UI is opened a |WebsiteSettings| object is
279 // created. So this counts how ofter the Website Settings UI is opened. 275 // created. So this counts how ofter the Website Settings UI is opened.
280 RecordWebsiteSettingsAction(WEBSITE_SETTINGS_OPENED); 276 RecordWebsiteSettingsAction(WEBSITE_SETTINGS_OPENED);
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 info.connection_status = site_connection_status_; 816 info.connection_status = site_connection_status_;
821 info.connection_status_description = 817 info.connection_status_description =
822 UTF16ToUTF8(site_connection_details_); 818 UTF16ToUTF8(site_connection_details_);
823 info.identity_status = site_identity_status_; 819 info.identity_status = site_identity_status_;
824 info.identity_status_description = 820 info.identity_status_description =
825 UTF16ToUTF8(site_identity_details_); 821 UTF16ToUTF8(site_identity_details_);
826 info.certificate = certificate_; 822 info.certificate = certificate_;
827 info.show_ssl_decision_revoke_button = show_ssl_decision_revoke_button_; 823 info.show_ssl_decision_revoke_button = show_ssl_decision_revoke_button_;
828 ui_->SetIdentityInfo(info); 824 ui_->SetIdentityInfo(info);
829 } 825 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/website_settings/website_settings.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698