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

Unified Diff: ios/chrome/browser/ui/activity_services/share_to_data_builder.mm

Issue 2816213002: Remove usage of Tab's |url| property from ShareToDataBuilder. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/activity_services/share_to_data_builder.mm
diff --git a/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm b/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm
index 3fca21182a26e63ff6fb668deff7fa5c3611d9d4..58ee7118d3e6c8a121dc5a18cf2acd632ab1488f 100644
--- a/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm
+++ b/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm
@@ -31,7 +31,7 @@
BOOL isPagePrintable = [tab viewForPrinting] != nil;
ThumbnailGeneratorBlock thumbnailGenerator =
activity_services::ThumbnailGeneratorForTab(tab);
- return [[ShareToData alloc] initWithURL:tab.url
+ return [[ShareToData alloc] initWithURL:tab.lastCommittedURL
kkhorimoto 2017/04/14 20:35:24 If a user is attempting to share a page, we can as
sdefresne 2017/04/18 15:56:49 I personally frequently share pages that are still
Eugene But (OOO till 7-30) 2017/04/18 16:16:47 I think we should be consistent with other feature
kkhorimoto 2017/05/31 22:12:36 I agree with Eugene that it should be last committ
kkhorimoto 2017/06/01 19:52:23 Changed to visible per discussion on email thread.
title:tab.title
isOriginalTitle:(tab.originalTitle != nil)
isPagePrintable:isPagePrintable
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698