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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 show_info_bar_(false), | 79 show_info_bar_(false), |
80 site_url_(url), | 80 site_url_(url), |
81 site_identity_status_(SITE_IDENTITY_STATUS_UNKNOWN), | 81 site_identity_status_(SITE_IDENTITY_STATUS_UNKNOWN), |
82 cert_id_(0), | 82 cert_id_(0), |
83 site_connection_status_(SITE_CONNECTION_STATUS_UNKNOWN), | 83 site_connection_status_(SITE_CONNECTION_STATUS_UNKNOWN), |
84 cert_store_(cert_store), | 84 cert_store_(cert_store), |
85 content_settings_(profile->GetHostContentSettingsMap()) { | 85 content_settings_(profile->GetHostContentSettingsMap()) { |
86 Init(profile, url, ssl); | 86 Init(profile, url, ssl); |
87 | 87 |
88 HistoryService* history_service = HistoryServiceFactory::GetForProfile( | 88 HistoryService* history_service = HistoryServiceFactory::GetForProfile( |
89 profile, Profile::EXPLICIT_ACCESS); | 89 profile, Profile::EXPLICIT_ACCESS).get(); |
90 if (history_service) { | 90 if (history_service) { |
91 history_service->GetVisibleVisitCountToHost( | 91 history_service->GetVisibleVisitCountToHost( |
92 site_url_, | 92 site_url_, |
93 &visit_count_request_consumer_, | 93 &visit_count_request_consumer_, |
94 base::Bind(&WebsiteSettings::OnGotVisitCountToHost, | 94 base::Bind(&WebsiteSettings::OnGotVisitCountToHost, |
95 base::Unretained(this))); | 95 base::Unretained(this))); |
96 } | 96 } |
97 | 97 |
98 PresentSitePermissions(); | 98 PresentSitePermissions(); |
99 PresentSiteData(); | 99 PresentSiteData(); |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 first_visit_text = l10n_util::GetStringFUTF16( | 553 first_visit_text = l10n_util::GetStringFUTF16( |
554 IDS_PAGE_INFO_SECURITY_TAB_VISITED_BEFORE_TODAY, | 554 IDS_PAGE_INFO_SECURITY_TAB_VISITED_BEFORE_TODAY, |
555 base::TimeFormatShortDate(first_visit)); | 555 base::TimeFormatShortDate(first_visit)); |
556 } else { | 556 } else { |
557 first_visit_text = l10n_util::GetStringUTF16( | 557 first_visit_text = l10n_util::GetStringUTF16( |
558 IDS_PAGE_INFO_SECURITY_TAB_FIRST_VISITED_TODAY); | 558 IDS_PAGE_INFO_SECURITY_TAB_FIRST_VISITED_TODAY); |
559 | 559 |
560 } | 560 } |
561 ui_->SetFirstVisit(first_visit_text); | 561 ui_->SetFirstVisit(first_visit_text); |
562 } | 562 } |
OLD | NEW |