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

Unified Diff: components/sessions/content/content_live_tab.cc

Issue 2842833003: Update SupportsUserData uses with unique_ptr. (Closed)
Patch Set: rebase Created 3 years, 8 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 | « components/safe_browsing/base_ui_manager.cc ('k') | components/sessions/ios/ios_live_tab.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sessions/content/content_live_tab.cc
diff --git a/components/sessions/content/content_live_tab.cc b/components/sessions/content/content_live_tab.cc
index 3f1ef66e042586fa629f3fa860ebb605825cc439..3e970b7387e6be2cb83df8133ff05e24762fe1b6 100644
--- a/components/sessions/content/content_live_tab.cc
+++ b/components/sessions/content/content_live_tab.cc
@@ -18,7 +18,7 @@ ContentLiveTab* ContentLiveTab::GetForWebContents(
content::WebContents* contents) {
if (!contents->GetUserData(kContentLiveTabWebContentsUserDataKey)) {
contents->SetUserData(kContentLiveTabWebContentsUserDataKey,
- new ContentLiveTab(contents));
+ base::WrapUnique(new ContentLiveTab(contents)));
}
return static_cast<ContentLiveTab*>(contents->GetUserData(
« no previous file with comments | « components/safe_browsing/base_ui_manager.cc ('k') | components/sessions/ios/ios_live_tab.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698