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

Unified Diff: ios/chrome/browser/web/navigation_manager_util.mm

Issue 2706173003: change navigation initiation type default value to RENDERER_INITIATED (Closed)
Patch Set: vv Created 3 years, 9 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/web/navigation_manager_util.mm
diff --git a/ios/chrome/browser/web/navigation_manager_util.mm b/ios/chrome/browser/web/navigation_manager_util.mm
index 81a61b908a3971ec7cd750e68af3db88e026bd86..c85a63d70940694dace079764b5911bc75978c47 100644
--- a/ios/chrome/browser/web/navigation_manager_util.mm
+++ b/ios/chrome/browser/web/navigation_manager_util.mm
@@ -7,19 +7,3 @@
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
-
-web::NavigationItem* GetLastNonRedirectedItem(
- web::NavigationManager* nav_manager) {
- if (!nav_manager || !nav_manager->GetItemCount())
- return nullptr;
- int index = nav_manager->GetCurrentItemIndex();
- web::NavigationItem* item = nullptr;
- while (index >= 0) {
- item = nav_manager->GetItemAtIndex(index);
- // Returns the first non-Redirect item found.
- if ((item->GetTransitionType() & ui::PAGE_TRANSITION_IS_REDIRECT_MASK) == 0)
- break;
- --index;
- }
- return item;
-}
« no previous file with comments | « ios/chrome/browser/web/navigation_manager_util.h ('k') | ios/chrome/browser/web/navigation_manager_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698