| 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/media/media_stream_infobar_delegate.h" | 5 #include "chrome/browser/media/media_stream_infobar_delegate.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/browser/infobars/infobar_service.h" | 10 #include "chrome/browser/infobars/infobar_service.h" |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 return l10n_util::GetStringUTF16(IDS_LEARN_MORE); | 137 return l10n_util::GetStringUTF16(IDS_LEARN_MORE); |
| 138 } | 138 } |
| 139 | 139 |
| 140 bool MediaStreamInfoBarDelegate::LinkClicked( | 140 bool MediaStreamInfoBarDelegate::LinkClicked( |
| 141 WindowOpenDisposition disposition) { | 141 WindowOpenDisposition disposition) { |
| 142 InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL( | 142 InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL( |
| 143 content::OpenURLParams( | 143 content::OpenURLParams( |
| 144 GURL(chrome::kMediaAccessLearnMoreUrl), | 144 GURL(chrome::kMediaAccessLearnMoreUrl), |
| 145 content::Referrer(), | 145 content::Referrer(), |
| 146 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, | 146 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, |
| 147 content::PAGE_TRANSITION_LINK, false)); | 147 ui::PAGE_TRANSITION_LINK, false)); |
| 148 | 148 |
| 149 return false; // Do not dismiss the info bar. | 149 return false; // Do not dismiss the info bar. |
| 150 } | 150 } |
| OLD | NEW |