Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Side by Side Diff: chrome/browser/ui/views/proximity_auth/proximity_auth_error_bubble_view.cc

Issue 2248873002: Convert WindowOpenDisposition to an enum class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | chrome/browser/ui/views/sad_tab_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698