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

Unified Diff: chrome/browser/chromeos/login/ui/web_contents_forced_title.cc

Issue 2851013002: Switch SupportsUserData uses to use unique_ptr. (Closed)
Patch Set: 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
Index: chrome/browser/chromeos/login/ui/web_contents_forced_title.cc
diff --git a/chrome/browser/chromeos/login/ui/web_contents_forced_title.cc b/chrome/browser/chromeos/login/ui/web_contents_forced_title.cc
index 51dbef23ced0f28d1a4bcf1fb3b137c56eacc433..a29383ef452eb1d8cfe83df0790a0ddbb14dcb30 100644
--- a/chrome/browser/chromeos/login/ui/web_contents_forced_title.cc
+++ b/chrome/browser/chromeos/login/ui/web_contents_forced_title.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/chromeos/login/ui/web_contents_forced_title.h"
+#include "base/memory/ptr_util.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/web_contents.h"
@@ -19,8 +20,9 @@ void WebContentsForcedTitle::CreateForWebContentsWithTitle(
return;
web_contents->UpdateTitleForEntry(nullptr, title);
- web_contents->SetUserData(UserDataKey(),
- new WebContentsForcedTitle(web_contents, title));
+ web_contents->SetUserData(
+ UserDataKey(),
+ base::WrapUnique(new WebContentsForcedTitle(web_contents, title)));
}
WebContentsForcedTitle::WebContentsForcedTitle(

Powered by Google App Engine
This is Rietveld 408576698