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

Unified Diff: net/url_request/url_fetcher.h

Issue 2815913005: Switch to using scoped_ptr with UserData (Closed)
Patch Set: fixes 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: net/url_request/url_fetcher.h
diff --git a/net/url_request/url_fetcher.h b/net/url_request/url_fetcher.h
index eb4663db76386afab836aed991c359d8125e4049..97ac88b0afc122081c365a223e039e5797cd0605 100644
--- a/net/url_request/url_fetcher.h
+++ b/net/url_request/url_fetcher.h
@@ -94,7 +94,8 @@ class NET_EXPORT URLFetcher {
// Used by SetURLRequestUserData. The callback should make a fresh
// base::SupportsUserData::Data object every time it's called.
- typedef base::Callback<base::SupportsUserData::Data*()> CreateDataCallback;
+ typedef base::Callback<std::unique_ptr<base::SupportsUserData::Data>()>
+ CreateDataCallback;
// Used by SetUploadStreamFactory. The callback should assign a fresh upload
// data stream every time it's called.

Powered by Google App Engine
This is Rietveld 408576698