| Index: content/public/browser/web_contents_user_data.h
|
| diff --git a/content/public/browser/web_contents_user_data.h b/content/public/browser/web_contents_user_data.h
|
| index 6d84595af724bc2a1b89e004b67cea9204d4b445..99e114b961ae51021fa2cec762604160edac0bbb 100644
|
| --- a/content/public/browser/web_contents_user_data.h
|
| +++ b/content/public/browser/web_contents_user_data.h
|
| @@ -6,6 +6,7 @@
|
| #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_USER_DATA_H_
|
|
|
| #include "base/logging.h"
|
| +#include "base/memory/ptr_util.h"
|
| #include "base/supports_user_data.h"
|
| #include "content/public/browser/web_contents.h"
|
|
|
| @@ -35,7 +36,7 @@ class WebContentsUserData : public base::SupportsUserData::Data {
|
| static void CreateForWebContents(WebContents* contents) {
|
| DCHECK(contents);
|
| if (!FromWebContents(contents))
|
| - contents->SetUserData(UserDataKey(), new T(contents));
|
| + contents->SetUserData(UserDataKey(), base::WrapUnique(new T(contents)));
|
| }
|
|
|
| // Retrieves the instance of type T that was attached to the specified
|
|
|