commit | eeb6879d2408a4f6c06db6acd1c8e788ee6fc0e4 | [log] [tgz] |
---|---|---|
author | Dave Tapuska <[email protected]> | Tue Nov 16 21:38:40 2021 |
committer | Chromium LUCI CQ <[email protected]> | Tue Nov 16 21:38:40 2021 |
tree | c3d4a87ac5b88a4d7630eba3e9625c8a788e50cc | |
parent | 94a61a25a605d2fba4b00f50e2c313acbc0033df [diff] [blame] |
Call constructor that takes a WebContents for WebContentsUserData. Change from calling the default ctor to the specialized one that takes the WebContents* ptr. BUG=1268914 Change-Id: Id391f3099a2346d62cf1fb87cf4d0f3b3016e003 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3278400 Commit-Queue: Dave Tapuska <[email protected]> Reviewed-by: David Bertoni <[email protected]> Reviewed-by: Avi Drissman <[email protected]> Reviewed-by: Evan Stade <[email protected]> Reviewed-by: Ted Choc <[email protected]> Cr-Commit-Position: refs/heads/main@{#942290}
diff --git a/chrome/browser/ui/sync/browser_synced_tab_delegate.cc b/chrome/browser/ui/sync/browser_synced_tab_delegate.cc index d67c109..154932ed 100644 --- a/chrome/browser/ui/sync/browser_synced_tab_delegate.cc +++ b/chrome/browser/ui/sync/browser_synced_tab_delegate.cc
@@ -8,7 +8,8 @@ #include "components/sessions/content/session_tab_helper.h" BrowserSyncedTabDelegate::BrowserSyncedTabDelegate( - content::WebContents* web_contents) { + content::WebContents* web_contents) + : content::WebContentsUserData<BrowserSyncedTabDelegate>(*web_contents) { SetWebContents(web_contents); }