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

Unified Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 2562993002: Disallow [in]equality operator for PageTransition (Closed)
Patch Set: Disallow [in]equality operator for PageTransition Created 4 years 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/test/test_render_frame_host.cc ('k') | ui/base/page_transition_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/ui/crw_web_controller.mm
diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm
index ca23114424b25110cd961183512fc18ee9f53b60..f83a4ad2fc1630a495793bb62890bb3122d6112a 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -3400,7 +3400,8 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
!_webStateImpl->GetNavigationManager()->GetItemCount();
BOOL isPossibleLinkClick = [self isLinkNavigation:action.navigationType];
if (isPossibleLinkClick || isOpenInNewTabNavigation ||
- [self currentTransition] == ui::PAGE_TRANSITION_AUTO_BOOKMARK) {
+ PageTransitionCoreTypeIs([self currentTransition],
+ ui::PAGE_TRANSITION_AUTO_BOOKMARK)) {
// Check If the URL is handled by a native app.
if ([self urlTriggersNativeAppLaunch:requestURL
sourceURL:[self currentNavigationURL]
« no previous file with comments | « content/test/test_render_frame_host.cc ('k') | ui/base/page_transition_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698