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

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

Issue 2757073002: Cleanup of how -enableDesktopUserAgent uses NavigationManager utility. (Closed)
Patch Set: Added DCHECK 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
« no previous file with comments | « ios/chrome/browser/tabs/tab.mm ('k') | ios/chrome/browser/web/navigation_manager_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/web/navigation_manager_util.h
diff --git a/ios/chrome/browser/web/navigation_manager_util.h b/ios/chrome/browser/web/navigation_manager_util.h
index 24ec5b38c296fe3380892ad4dfbabae689f2d16e..20f1cef6507fa42ad6d209bf3c2fc8c859e43c5b 100644
--- a/ios/chrome/browser/web/navigation_manager_util.h
+++ b/ios/chrome/browser/web/navigation_manager_util.h
@@ -11,8 +11,8 @@
// Utility functions built on web::NavigationManager public API.
// Returns the most recent navigation item that is not the result of an HTTP
-// Redirect. Returns nullptr if |nav_manager| is empty or the first item if
-// all items are redirects.
+// Redirect. Returns nullptr if |nav_manager| is nullptr or is empty.
+// If all items are redirects, the first item is returned.
web::NavigationItem* GetLastNonRedirectedItem(
web::NavigationManager* nav_manager);
« no previous file with comments | « ios/chrome/browser/tabs/tab.mm ('k') | ios/chrome/browser/web/navigation_manager_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698