| OLD | NEW |
| 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 <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 cert_id_(0), | 183 cert_id_(0), |
| 184 site_connection_status_(SITE_CONNECTION_STATUS_UNKNOWN), | 184 site_connection_status_(SITE_CONNECTION_STATUS_UNKNOWN), |
| 185 cert_store_(cert_store), | 185 cert_store_(cert_store), |
| 186 content_settings_(profile->GetHostContentSettingsMap()), | 186 content_settings_(profile->GetHostContentSettingsMap()), |
| 187 chrome_ssl_host_state_delegate_( | 187 chrome_ssl_host_state_delegate_( |
| 188 ChromeSSLHostStateDelegateFactory::GetForProfile(profile)), | 188 ChromeSSLHostStateDelegateFactory::GetForProfile(profile)), |
| 189 did_revoke_user_ssl_decisions_(false) { | 189 did_revoke_user_ssl_decisions_(false) { |
| 190 Init(profile, url, ssl); | 190 Init(profile, url, ssl); |
| 191 | 191 |
| 192 HistoryService* history_service = HistoryServiceFactory::GetForProfile( | 192 HistoryService* history_service = HistoryServiceFactory::GetForProfile( |
| 193 profile, Profile::EXPLICIT_ACCESS); | 193 profile, ServiceAccessType::EXPLICIT_ACCESS); |
| 194 if (history_service) { | 194 if (history_service) { |
| 195 history_service->GetVisibleVisitCountToHost( | 195 history_service->GetVisibleVisitCountToHost( |
| 196 site_url_, | 196 site_url_, |
| 197 base::Bind(&WebsiteSettings::OnGotVisitCountToHost, | 197 base::Bind(&WebsiteSettings::OnGotVisitCountToHost, |
| 198 base::Unretained(this)), | 198 base::Unretained(this)), |
| 199 &visit_count_task_tracker_); | 199 &visit_count_task_tracker_); |
| 200 } | 200 } |
| 201 | 201 |
| 202 PresentSitePermissions(); | 202 PresentSitePermissions(); |
| 203 PresentSiteData(); | 203 PresentSiteData(); |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 822 if (visited_before_today) { | 822 if (visited_before_today) { |
| 823 first_visit_text = l10n_util::GetStringFUTF16( | 823 first_visit_text = l10n_util::GetStringFUTF16( |
| 824 IDS_PAGE_INFO_SECURITY_TAB_VISITED_BEFORE_TODAY, | 824 IDS_PAGE_INFO_SECURITY_TAB_VISITED_BEFORE_TODAY, |
| 825 base::TimeFormatShortDate(first_visit)); | 825 base::TimeFormatShortDate(first_visit)); |
| 826 } else { | 826 } else { |
| 827 first_visit_text = l10n_util::GetStringUTF16( | 827 first_visit_text = l10n_util::GetStringUTF16( |
| 828 IDS_PAGE_INFO_SECURITY_TAB_FIRST_VISITED_TODAY); | 828 IDS_PAGE_INFO_SECURITY_TAB_FIRST_VISITED_TODAY); |
| 829 } | 829 } |
| 830 ui_->SetFirstVisit(first_visit_text); | 830 ui_->SetFirstVisit(first_visit_text); |
| 831 } | 831 } |
| OLD | NEW |