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

Unified Diff: ios/web/navigation/navigation_item_impl.mm

Issue 2699253002: Removed CRWSessionEntry unittests. (Closed)
Patch Set: add ifndef 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/web/navigation/navigation_item_impl.h ('k') | ios/web/navigation/navigation_item_impl_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/navigation/navigation_item_impl.mm
diff --git a/ios/web/navigation/navigation_item_impl.mm b/ios/web/navigation/navigation_item_impl.mm
index 6cf8acae479a55ba722916c83347365a622507ac..cbc41a797389d86be403bcc18e77beca4f1ef2ed 100644
--- a/ios/web/navigation/navigation_item_impl.mm
+++ b/ios/web/navigation/navigation_item_impl.mm
@@ -10,6 +10,7 @@
#include <utility>
#include "base/logging.h"
+#include "base/strings/utf_string_conversions.h"
#include "components/url_formatter/url_formatter.h"
#import "ios/web/navigation/navigation_manager_impl.h"
#import "ios/web/public/web_client.h"
@@ -316,4 +317,17 @@ static int GetUniqueIDInConstructor() {
return title;
}
+#ifndef NDEBUG
+NSString* NavigationItemImpl::GetDescription() const {
+ return [NSString
+ stringWithFormat:
+ @"url:%s originalurl:%s title:%s transition:%d displayState:%@ "
+ @"userAgentType:%s",
+ url_.spec().c_str(), original_request_url_.spec().c_str(),
+ base::UTF16ToUTF8(title_).c_str(), transition_type_,
+ page_display_state_.GetDescription(),
+ GetUserAgentTypeDescription(user_agent_type_).c_str()];
+}
+#endif
+
} // namespace web
« no previous file with comments | « ios/web/navigation/navigation_item_impl.h ('k') | ios/web/navigation/navigation_item_impl_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698