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

Unified Diff: content/browser/frame_host/navigator_impl.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
Index: content/browser/frame_host/navigator_impl.cc
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index 9f20dd2b163894fa00944aa8790784e4205dc8e6..5269e0dc97a97404bcdac56b2dd442a1dab5c7b7 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -703,7 +703,8 @@ void NavigatorImpl::RequestOpenURL(
// subframe in the current tab. We'll assume it's for the main frame
// (possibly of a new or different WebContents) otherwise.
if (SiteIsolationPolicy::UseSubframeNavigationEntries() &&
- disposition == CURRENT_TAB && render_frame_host->GetParent()) {
+ disposition == WindowOpenDisposition::CURRENT_TAB &&
+ render_frame_host->GetParent()) {
frame_tree_node_id =
render_frame_host->frame_tree_node()->frame_tree_node_id();
}

Powered by Google App Engine
This is Rietveld 408576698