OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/proximity_auth/proximity_auth_error_bubble_vie
w.h" | 5 #include "chrome/browser/ui/views/proximity_auth/proximity_auth_error_bubble_vie
w.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h" | 9 #include "chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h" |
10 #include "chrome/grit/theme_resources.h" | 10 #include "chrome/grit/theme_resources.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 GetWidget()->Close(); | 131 GetWidget()->Close(); |
132 } | 132 } |
133 | 133 |
134 void ProximityAuthErrorBubbleView::StyledLabelLinkClicked( | 134 void ProximityAuthErrorBubbleView::StyledLabelLinkClicked( |
135 views::StyledLabel* label, | 135 views::StyledLabel* label, |
136 const gfx::Range& range, | 136 const gfx::Range& range, |
137 int event_flags) { | 137 int event_flags) { |
138 if (!web_contents()) | 138 if (!web_contents()) |
139 return; | 139 return; |
140 | 140 |
141 web_contents()->OpenURL( | 141 web_contents()->OpenURL(content::OpenURLParams( |
142 content::OpenURLParams(link_url_, content::Referrer(), NEW_FOREGROUND_TAB, | 142 link_url_, content::Referrer(), WindowOpenDisposition::NEW_FOREGROUND_TAB, |
143 ui::PAGE_TRANSITION_LINK, false)); | 143 ui::PAGE_TRANSITION_LINK, false)); |
144 } | 144 } |
OLD | NEW |