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

Unified Diff: content/test/test_render_frame_host.cc

Issue 2019373002: Fix page transition qualifiers not masked out (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added one more occurrence. Created 4 years, 7 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 | « components/translate/content/browser/content_translate_driver.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_render_frame_host.cc
diff --git a/content/test/test_render_frame_host.cc b/content/test/test_render_frame_host.cc
index 5ed27573e1601f3badb15a8ff1da4ab285e29c08..ba1051775fbecdc8ed151ff39513378144b6e617 100644
--- a/content/test/test_render_frame_host.cc
+++ b/content/test/test_render_frame_host.cc
@@ -318,8 +318,8 @@ void TestRenderFrameHost::SendNavigateWithParameters(
url::Replacements<char> replacements;
replacements.ClearRef();
params.was_within_same_page =
- transition != ui::PAGE_TRANSITION_RELOAD &&
- transition != ui::PAGE_TRANSITION_TYPED &&
+ !ui::PageTransitionCoreTypeIs(transition, ui::PAGE_TRANSITION_RELOAD) &&
+ !ui::PageTransitionCoreTypeIs(transition, ui::PAGE_TRANSITION_TYPED) &&
url_copy.ReplaceComponents(replacements) ==
GetLastCommittedURL().ReplaceComponents(replacements);
« no previous file with comments | « components/translate/content/browser/content_translate_driver.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698