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

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: use visible URL Created 3 years, 7 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..f35d9967bbb8a730cb3a6a64bbcfa2725481ba7f 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.visibleURL
rohitrao (ping after 24h) 2017/08/15 15:24:39 I was looking at this code today and it seems weir
Eugene But (OOO till 7-30) 2017/08/15 17:12:33 Good catch. tab.title will always be the title of
kkhorimoto (Do not use) 2017/08/15 17:53:16 Since we agreed that it's most likely that the use
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