| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/infobars/insecure_content_infobar_delegate.h" | 5 #include "chrome/browser/infobars/insecure_content_infobar_delegate.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 8 #include "chrome/browser/infobars/infobar_service.h" | 10 #include "chrome/browser/infobars/infobar_service.h" |
| 9 #include "chrome/common/render_messages.h" | 11 #include "chrome/common/render_messages.h" |
| 10 #include "chrome/grit/generated_resources.h" | 12 #include "chrome/grit/generated_resources.h" |
| 11 #include "components/content_settings/content/common/content_settings_messages.h
" | 13 #include "components/content_settings/content/common/content_settings_messages.h
" |
| 12 #include "components/google/core/browser/google_util.h" | 14 #include "components/google/core/browser/google_util.h" |
| 13 #include "components/infobars/core/infobar.h" | 15 #include "components/infobars/core/infobar.h" |
| 14 #include "content/public/browser/render_frame_host.h" | 16 #include "content/public/browser/render_frame_host.h" |
| 15 #include "content/public/browser/render_view_host.h" | 17 #include "content/public/browser/render_view_host.h" |
| 16 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 return true; | 95 return true; |
| 94 } | 96 } |
| 95 | 97 |
| 96 base::string16 InsecureContentInfoBarDelegate::GetLinkText() const { | 98 base::string16 InsecureContentInfoBarDelegate::GetLinkText() const { |
| 97 return l10n_util::GetStringUTF16(IDS_LEARN_MORE); | 99 return l10n_util::GetStringUTF16(IDS_LEARN_MORE); |
| 98 } | 100 } |
| 99 | 101 |
| 100 GURL InsecureContentInfoBarDelegate::GetLinkURL() const { | 102 GURL InsecureContentInfoBarDelegate::GetLinkURL() const { |
| 101 return GURL("https://support.google.com/chrome/answer/1342714"); | 103 return GURL("https://support.google.com/chrome/answer/1342714"); |
| 102 } | 104 } |
| OLD | NEW |