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/tab_contents/insecure_content_infobar_delegate.h" | 5 #include "chrome/browser/tab_contents/insecure_content_infobar_delegate.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "chrome/browser/google/google_util.h" | 8 #include "chrome/browser/google/google_util.h" |
9 #include "chrome/browser/infobars/infobar_tab_helper.h" | 9 #include "chrome/browser/infobars/infobar_tab_helper.h" |
10 #include "chrome/common/render_messages.h" | 10 #include "chrome/common/render_messages.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 string16 InsecureContentInfoBarDelegate::GetLinkText() const { | 75 string16 InsecureContentInfoBarDelegate::GetLinkText() const { |
76 return l10n_util::GetStringUTF16(IDS_LEARN_MORE); | 76 return l10n_util::GetStringUTF16(IDS_LEARN_MORE); |
77 } | 77 } |
78 | 78 |
79 bool InsecureContentInfoBarDelegate::LinkClicked( | 79 bool InsecureContentInfoBarDelegate::LinkClicked( |
80 WindowOpenDisposition disposition) { | 80 WindowOpenDisposition disposition) { |
81 owner()->tab_contents()->OpenURL(OpenURLParams( | 81 owner()->tab_contents()->OpenURL(OpenURLParams( |
82 google_util::AppendGoogleLocaleParam(GURL( | 82 google_util::AppendGoogleLocaleParam(GURL( |
83 "https://www.google.com/support/chrome/bin/answer.py?answer=1342714")), | 83 "https://www.google.com/support/chrome/bin/answer.py?answer=1342714")), |
84 GURL(), (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, | 84 content::Referrer(), |
| 85 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, |
85 content::PAGE_TRANSITION_LINK, false)); | 86 content::PAGE_TRANSITION_LINK, false)); |
86 return false; | 87 return false; |
87 } | 88 } |
OLD | NEW |