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

Unified Diff: content/browser/android/content_view_core_impl.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/zoom/zoom_event_manager.cc ('k') | content/browser/android/context_selection_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index d4bc3f810952cd1795dec2f01f3071aaa089a74b..c38828a5eafa178f98f2e300e872d1d32116ceab 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -13,6 +13,7 @@
#include "base/command_line.h"
#include "base/logging.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/user_metrics.h"
#include "base/strings/string_util.h"
@@ -325,7 +326,7 @@ void ContentViewCoreImpl::InitWebContents() {
SetContentViewCore(this);
DCHECK(!web_contents_->GetUserData(kContentViewUserDataKey));
web_contents_->SetUserData(kContentViewUserDataKey,
- new ContentViewUserData(this));
+ base::MakeUnique<ContentViewUserData>(this));
}
void ContentViewCoreImpl::RenderViewReady() {
« no previous file with comments | « components/zoom/zoom_event_manager.cc ('k') | content/browser/android/context_selection_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698