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

Issue 2816213002: Remove usage of Tab's |url| property from ShareToDataBuilder. (Closed)

Created:
3 years, 8 months ago by kkhorimoto
Modified:
3 years, 4 months ago
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, marq+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove usage of Tab's |url| property from ShareToDataBuilder. BUG=546208 Review-Url: https://codereview.chromium.org/2816213002 Cr-Commit-Position: refs/heads/master@{#476411} Committed: https://chromium.googlesource.com/chromium/src/+/3e6bc59e946bac1b9829d21df6d03481718f12fd

Patch Set 1 #

Total comments: 5

Patch Set 2 : use visible URL #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M ios/chrome/browser/ui/activity_services/share_to_data_builder.mm View 1 1 chunk +1 line, -1 line 3 comments Download

Messages

Total messages: 19 (6 generated)
kkhorimoto
https://codereview.chromium.org/2816213002/diff/1/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm File ios/chrome/browser/ui/activity_services/share_to_data_builder.mm (right): https://codereview.chromium.org/2816213002/diff/1/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm#newcode34 ios/chrome/browser/ui/activity_services/share_to_data_builder.mm:34: return [[ShareToData alloc] initWithURL:tab.lastCommittedURL If a user is attempting ...
3 years, 8 months ago (2017-04-14 20:35:24 UTC) #2
Eugene But (OOO till 7-30)
lgtm
3 years, 8 months ago (2017-04-14 21:43:58 UTC) #3
sdefresne
https://codereview.chromium.org/2816213002/diff/1/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm File ios/chrome/browser/ui/activity_services/share_to_data_builder.mm (right): https://codereview.chromium.org/2816213002/diff/1/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm#newcode34 ios/chrome/browser/ui/activity_services/share_to_data_builder.mm:34: return [[ShareToData alloc] initWithURL:tab.lastCommittedURL On 2017/04/14 20:35:24, kkhorimoto_ wrote: ...
3 years, 8 months ago (2017-04-18 15:56:49 UTC) #4
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2816213002/diff/1/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm File ios/chrome/browser/ui/activity_services/share_to_data_builder.mm (right): https://codereview.chromium.org/2816213002/diff/1/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm#newcode34 ios/chrome/browser/ui/activity_services/share_to_data_builder.mm:34: return [[ShareToData alloc] initWithURL:tab.lastCommittedURL On 2017/04/18 15:56:49, sdefresne wrote: ...
3 years, 8 months ago (2017-04-18 16:16:47 UTC) #5
kkhorimoto
https://codereview.chromium.org/2816213002/diff/1/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm File ios/chrome/browser/ui/activity_services/share_to_data_builder.mm (right): https://codereview.chromium.org/2816213002/diff/1/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm#newcode34 ios/chrome/browser/ui/activity_services/share_to_data_builder.mm:34: return [[ShareToData alloc] initWithURL:tab.lastCommittedURL On 2017/04/18 16:16:47, Eugene But ...
3 years, 6 months ago (2017-05-31 22:12:36 UTC) #6
kkhorimoto
https://codereview.chromium.org/2816213002/diff/1/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm File ios/chrome/browser/ui/activity_services/share_to_data_builder.mm (right): https://codereview.chromium.org/2816213002/diff/1/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm#newcode34 ios/chrome/browser/ui/activity_services/share_to_data_builder.mm:34: return [[ShareToData alloc] initWithURL:tab.lastCommittedURL On 2017/05/31 22:12:36, kkhorimoto_ wrote: ...
3 years, 6 months ago (2017-06-01 19:52:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2816213002/20001
3 years, 6 months ago (2017-06-01 19:53:28 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/3e6bc59e946bac1b9829d21df6d03481718f12fd
3 years, 6 months ago (2017-06-01 20:27:40 UTC) #13
rohitrao (ping after 24h)
https://codereview.chromium.org/2816213002/diff/20001/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm File ios/chrome/browser/ui/activity_services/share_to_data_builder.mm (right): https://codereview.chromium.org/2816213002/diff/20001/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm#newcode34 ios/chrome/browser/ui/activity_services/share_to_data_builder.mm:34: return [[ShareToData alloc] initWithURL:tab.visibleURL I was looking at this ...
3 years, 4 months ago (2017-08-15 15:24:39 UTC) #14
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2816213002/diff/20001/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm File ios/chrome/browser/ui/activity_services/share_to_data_builder.mm (right): https://codereview.chromium.org/2816213002/diff/20001/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm#newcode34 ios/chrome/browser/ui/activity_services/share_to_data_builder.mm:34: return [[ShareToData alloc] initWithURL:tab.visibleURL On 2017/08/15 15:24:39, rohitrao (ping ...
3 years, 4 months ago (2017-08-15 17:12:34 UTC) #15
kkhorimoto (Do not use)
https://codereview.chromium.org/2816213002/diff/20001/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm File ios/chrome/browser/ui/activity_services/share_to_data_builder.mm (right): https://codereview.chromium.org/2816213002/diff/20001/ios/chrome/browser/ui/activity_services/share_to_data_builder.mm#newcode34 ios/chrome/browser/ui/activity_services/share_to_data_builder.mm:34: return [[ShareToData alloc] initWithURL:tab.visibleURL On 2017/08/15 17:12:33, Eugene But ...
3 years, 4 months ago (2017-08-15 17:53:16 UTC) #17
rohitrao (ping after 24h)
> Since we agreed that it's most likely that the user's intent is to share ...
3 years, 4 months ago (2017-08-15 20:20:06 UTC) #18
Eugene But (OOO till 7-30)
3 years, 4 months ago (2017-08-15 20:51:35 UTC) #19
Message was sent while issue was closed.
On 2017/08/15 20:20:06, rohitrao (ping after 24h) wrote:
> > Since we agreed that it's most likely that the user's intent is to share the
> > visible URL, does it make sense to use GetTitleForDisplay() on the visible
> > NavigationItem?
> 
> VisibleItem and LastCommittedItem are only different between when we start a
> renderer-initiated request and when the server responds.  In that time period,
> the title for the pending item will always be empty, so we'll fall back to
> either the URL or Untitled.
> 
> There's nothing stopping us from doing this, just that the title will almost
> certainly be nonexistent in this scenario.  We need to be consistent though,
one
> way or another.
Small correction. These are the cases when VisibleItem and LastCommittedItem are
different:
 - SSL interstitial is displayed
 - User-initiated pending load is in progress

Powered by Google App Engine
This is Rietveld 408576698