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

Unified Diff: chrome/browser/ui/tab_helpers.cc

Issue 2847173004: 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/ui/tab_helpers.cc
diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
index 075c1cb2a603dccbbd39994a9548fcf09d91f32a..86d21a45bc68e40f3de8b2026360725b41928f9b 100644
--- a/chrome/browser/ui/tab_helpers.cc
+++ b/chrome/browser/ui/tab_helpers.cc
@@ -8,6 +8,7 @@
#include <utility>
#include "base/command_line.h"
+#include "base/memory/ptr_util.h"
#include "build/build_config.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/browser_process.h"
@@ -138,7 +139,7 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
// Mark as adopted.
web_contents->SetUserData(&kTabContentsAttachedTabHelpersUserDataKey,
- new base::SupportsUserData::Data());
+ base::MakeUnique<base::SupportsUserData::Data>());
#if BUILDFLAG(ENABLE_EXTENSIONS)
// Set the view type.

Powered by Google App Engine
This is Rietveld 408576698