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 26 matching lines...) Expand all Loading... |
37 #include "content/public/common/ssl_status.h" | 37 #include "content/public/common/ssl_status.h" |
38 #include "content/public/common/url_constants.h" | 38 #include "content/public/common/url_constants.h" |
39 #include "grit/chromium_strings.h" | 39 #include "grit/chromium_strings.h" |
40 #include "grit/generated_resources.h" | 40 #include "grit/generated_resources.h" |
41 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 41 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
42 #include "net/cert/cert_status_flags.h" | 42 #include "net/cert/cert_status_flags.h" |
43 #include "net/cert/x509_certificate.h" | 43 #include "net/cert/x509_certificate.h" |
44 #include "net/ssl/ssl_cipher_suite_names.h" | 44 #include "net/ssl/ssl_cipher_suite_names.h" |
45 #include "net/ssl/ssl_connection_status_flags.h" | 45 #include "net/ssl/ssl_connection_status_flags.h" |
46 #include "ui/base/l10n/l10n_util.h" | 46 #include "ui/base/l10n/l10n_util.h" |
47 #include "ui/base/resource/resource_bundle.h" | |
48 | 47 |
49 #if defined(OS_CHROMEOS) | 48 #if defined(OS_CHROMEOS) |
50 #include "chrome/browser/chromeos/policy/policy_cert_service.h" | 49 #include "chrome/browser/chromeos/policy/policy_cert_service.h" |
51 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h" | 50 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h" |
52 #endif | 51 #endif |
53 | 52 |
54 using base::ASCIIToUTF16; | 53 using base::ASCIIToUTF16; |
55 using base::UTF8ToUTF16; | 54 using base::UTF8ToUTF16; |
56 using base::UTF16ToUTF8; | 55 using base::UTF16ToUTF8; |
57 using content::BrowserThread; | 56 using content::BrowserThread; |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 if (visited_before_today) { | 683 if (visited_before_today) { |
685 first_visit_text = l10n_util::GetStringFUTF16( | 684 first_visit_text = l10n_util::GetStringFUTF16( |
686 IDS_PAGE_INFO_SECURITY_TAB_VISITED_BEFORE_TODAY, | 685 IDS_PAGE_INFO_SECURITY_TAB_VISITED_BEFORE_TODAY, |
687 base::TimeFormatShortDate(first_visit)); | 686 base::TimeFormatShortDate(first_visit)); |
688 } else { | 687 } else { |
689 first_visit_text = l10n_util::GetStringUTF16( | 688 first_visit_text = l10n_util::GetStringUTF16( |
690 IDS_PAGE_INFO_SECURITY_TAB_FIRST_VISITED_TODAY); | 689 IDS_PAGE_INFO_SECURITY_TAB_FIRST_VISITED_TODAY); |
691 } | 690 } |
692 ui_->SetFirstVisit(first_visit_text); | 691 ui_->SetFirstVisit(first_visit_text); |
693 } | 692 } |
OLD | NEW |