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

Unified Diff: content/browser/webui/generic_handler.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, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/web_contents/web_drag_dest_mac.mm ('k') | content/public/browser/page_navigator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/webui/generic_handler.cc
diff --git a/content/browser/webui/generic_handler.cc b/content/browser/webui/generic_handler.cc
index b26bcd9294a3232e2c4738a4f94596d9c0d9d52e..71259a8066afc74a7a35a869ffc060188cd1ab39 100644
--- a/content/browser/webui/generic_handler.cc
+++ b/content/browser/webui/generic_handler.cc
@@ -47,8 +47,9 @@ void GenericHandler::HandleNavigateToUrl(const base::ListValue* args) {
WindowOpenDisposition disposition = ui::DispositionFromClick(
middle_button, alt_key, ctrl_key, meta_key, shift_key);
- if (disposition == CURRENT_TAB && target_string == "_blank")
- disposition = NEW_FOREGROUND_TAB;
+ if (disposition == WindowOpenDisposition::CURRENT_TAB &&
+ target_string == "_blank")
+ disposition = WindowOpenDisposition::NEW_FOREGROUND_TAB;
web_ui()->GetWebContents()->OpenURL(OpenURLParams(GURL(url_string),
Referrer(),
« no previous file with comments | « content/browser/web_contents/web_drag_dest_mac.mm ('k') | content/public/browser/page_navigator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698