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

Unified Diff: ios/chrome/browser/native_app_launcher/native_app_navigation_util.mm

Issue 2897213002: Removed NativeAppNavigationController and related code (Closed)
Patch Set: rebase Created 3 years, 6 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: ios/chrome/browser/native_app_launcher/native_app_navigation_util.mm
diff --git a/ios/chrome/browser/native_app_launcher/native_app_navigation_util.mm b/ios/chrome/browser/native_app_launcher/native_app_navigation_util.mm
deleted file mode 100644
index 1e2298e1d6091b5599a5d0f79f59eb43bcc963f0..0000000000000000000000000000000000000000
--- a/ios/chrome/browser/native_app_launcher/native_app_navigation_util.mm
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ios/chrome/browser/native_app_launcher/native_app_navigation_util.h"
-
-#import "ios/chrome/browser/web/navigation_manager_util.h"
-#import "ios/web/public/navigation_item.h"
-#import "ios/web/public/web_state/web_state.h"
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-namespace native_app_launcher {
-
-bool IsLinkNavigation(web::WebState* web_state) {
- DCHECK(web_state);
- web::NavigationItem* item =
- GetLastCommittedNonRedirectedItem(web_state->GetNavigationManager());
- if (!item)
- return false;
- ui::PageTransition transition = item->GetTransitionType();
- return PageTransitionCoreTypeIs(transition, ui::PAGE_TRANSITION_LINK) ||
- PageTransitionCoreTypeIs(transition,
- ui::PAGE_TRANSITION_AUTO_BOOKMARK);
-}
-
-} // namespace native_app_launcher

Powered by Google App Engine
This is Rietveld 408576698