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

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

Issue 2645653003: Expose thumbnails of pages to iOS share extensions. (Closed)
Patch Set: Created 3 years, 11 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/ui/activity_services/activity_service_controller.mm
diff --git a/ios/chrome/browser/ui/activity_services/activity_service_controller.mm b/ios/chrome/browser/ui/activity_services/activity_service_controller.mm
index e5a359f87cabb2df55c43afaedec94545d386477..9211b1acda7ebb1ca3ad1a2913e189409e1870af 100644
--- a/ios/chrome/browser/ui/activity_services/activity_service_controller.mm
+++ b/ios/chrome/browser/ui/activity_services/activity_service_controller.mm
@@ -197,8 +197,10 @@
// App Extensions (e.g. 1Password) and also provide a public.url UTType
// for Share Extensions (e.g. Facebook, Twitter).
UIActivityFindLoginActionSource* loginActionProvider =
- [[UIActivityFindLoginActionSource alloc] initWithURL:data.nsurl
- subject:data.title];
+ [[UIActivityFindLoginActionSource alloc]
Olivier 2017/01/20 10:14:00 This activity is the standard one. I don't think i
pkl (ping after 24h if needed) 2017/01/20 18:30:31 If your proposal is to rename UIActivity{FindLogin
Olivier 2017/01/20 19:29:25 My suggestion was to rename the variable and/or th
jif 2017/01/24 10:29:50 I agree. +pkl for a second opinion.
jif 2017/01/24 10:29:50 Yes, I think URLProvider would be a better name. B
+ initWithURL:data.nsurl
+ subject:data.title
+ thumbnailGenerator:data.thumbnailGenerator];
[activityItems addObject:loginActionProvider];
UIActivityTextSource* textProvider =

Powered by Google App Engine
This is Rietveld 408576698