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

Unified Diff: chrome/browser/chromeos/login/ui/web_contents_set_background_color.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
« no previous file with comments | « chrome/browser/chromeos/login/ui/web_contents_forced_title.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/ui/web_contents_set_background_color.cc
diff --git a/chrome/browser/chromeos/login/ui/web_contents_set_background_color.cc b/chrome/browser/chromeos/login/ui/web_contents_set_background_color.cc
index ba44ca0075181c5b60d179822b55cbc198eee520..6b57011eaf5994e51d5a9ab21976585f6e072fe4 100644
--- a/chrome/browser/chromeos/login/ui/web_contents_set_background_color.cc
+++ b/chrome/browser/chromeos/login/ui/web_contents_set_background_color.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/chromeos/login/ui/web_contents_set_background_color.h"
+#include "base/memory/ptr_util.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/render_widget_host.h"
#include "content/public/browser/render_widget_host_view.h"
@@ -23,7 +24,8 @@ void WebContentsSetBackgroundColor::CreateForWebContentsWithColor(
// WebContentsSetBackgroundColor instance and will destroy it when the
// WebContents instance is destroyed.
web_contents->SetUserData(
- UserDataKey(), new WebContentsSetBackgroundColor(web_contents, color));
+ UserDataKey(),
+ base::WrapUnique(new WebContentsSetBackgroundColor(web_contents, color)));
}
WebContentsSetBackgroundColor::WebContentsSetBackgroundColor(
« no previous file with comments | « chrome/browser/chromeos/login/ui/web_contents_forced_title.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698