Commit f8b1539c authored by David Maunder's avatar David Maunder Committed by Commit Bot

Fix for crash on createFromTab

Bug: 1051421
Change-Id: Ia7221f0b2f2f764ec3c9979223db32898ea9a895
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2051970Reviewed-by: default avatarYusuf Ozuysal <yusufo@chromium.org>
Reviewed-by: default avatarMei Liang <meiliang@chromium.org>
Commit-Queue: David Maunder <davidjm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#740843}
parent a089aa8a
......@@ -91,8 +91,7 @@ public class TabContext {
String referrerUrl = getReferrerUrlFromTab(tab);
return new TabInfo(tab.getId(), tab.getTitle(), tab.getUrlString(),
((TabImpl) tab).getOriginalUrl(), referrerUrl != null ? referrerUrl : "",
tab.getTimestampMillis(), ((TabImpl) tab).getProfile(),
tab.getWebContents().getVisibleUrl().getSpec());
tab.getTimestampMillis(), ((TabImpl) tab).getProfile(), tab.getUrl());
}
public double getSiteEngagementScore() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment