Index: chrome/browser/loader/chrome_navigation_data.cc |
diff --git a/chrome/browser/loader/chrome_navigation_data.cc b/chrome/browser/loader/chrome_navigation_data.cc |
index 9c8251645b827c6b690aa47beb57d77734ffd4b7..c6069ab2c01f04e9d937faa05fe32d2b2ab3b20d 100644 |
--- a/chrome/browser/loader/chrome_navigation_data.cc |
+++ b/chrome/browser/loader/chrome_navigation_data.cc |
@@ -4,6 +4,7 @@ |
#include "chrome/browser/loader/chrome_navigation_data.h" |
+#include "base/memory/ptr_util.h" |
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_data.h" |
#include "net/url_request/url_request.h" |
@@ -23,7 +24,8 @@ ChromeNavigationData* ChromeNavigationData::GetDataAndCreateIfNecessary( |
if (data) |
return data; |
data = new ChromeNavigationData(); |
- request->SetUserData(kChromeNavigationDataUserDataKey, data); |
+ request->SetUserData(kChromeNavigationDataUserDataKey, |
+ base::WrapUnique(data)); |
return data; |
} |