OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/views/download/download_feedback_dialog_view.h" | 5 #include "chrome/browser/ui/views/download/download_feedback_dialog_view.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
9 #include "base/supports_user_data.h" | 9 #include "base/supports_user_data.h" |
10 #include "chrome/browser/platform_util.h" | 10 #include "chrome/browser/platform_util.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 } | 148 } |
149 | 149 |
150 void DownloadFeedbackDialogView::LinkClicked( | 150 void DownloadFeedbackDialogView::LinkClicked( |
151 views::Link* source, int event_flags) { | 151 views::Link* source, int event_flags) { |
152 WindowOpenDisposition disposition = | 152 WindowOpenDisposition disposition = |
153 ui::DispositionFromEventFlags(event_flags); | 153 ui::DispositionFromEventFlags(event_flags); |
154 content::OpenURLParams params( | 154 content::OpenURLParams params( |
155 GURL(l10n_util::GetStringUTF8(IDS_SAFE_BROWSING_PRIVACY_POLICY_URL)), | 155 GURL(l10n_util::GetStringUTF8(IDS_SAFE_BROWSING_PRIVACY_POLICY_URL)), |
156 content::Referrer(), | 156 content::Referrer(), |
157 disposition == CURRENT_TAB ? NEW_FOREGROUND_TAB : disposition, | 157 disposition == CURRENT_TAB ? NEW_FOREGROUND_TAB : disposition, |
158 content::PAGE_TRANSITION_LINK, false); | 158 ui::PAGE_TRANSITION_LINK, false); |
159 navigator_->OpenURL(params); | 159 navigator_->OpenURL(params); |
160 } | 160 } |
OLD | NEW |