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

Unified Diff: chrome/browser/loader/chrome_navigation_data.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 | « chrome/browser/infobars/infobar_service.h ('k') | chrome/browser/media/cast_remoting_connector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « chrome/browser/infobars/infobar_service.h ('k') | chrome/browser/media/cast_remoting_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698