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

Unified Diff: components/data_use_measurement/core/data_use_user_data.cc

Issue 2815913005: Switch to using scoped_ptr with UserData (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
Index: components/data_use_measurement/core/data_use_user_data.cc
diff --git a/components/data_use_measurement/core/data_use_user_data.cc b/components/data_use_measurement/core/data_use_user_data.cc
index ebae0e3d205fdcf28b733a28facd4f9dc70014d4..4cb0f12cdd092b6fe0ef4dabc429ac9da9f2713a 100644
--- a/components/data_use_measurement/core/data_use_user_data.cc
+++ b/components/data_use_measurement/core/data_use_user_data.cc
@@ -8,6 +8,7 @@
#include "base/android/application_status_listener.h"
#endif
+#include "base/memory/ptr_util.h"
#include "net/url_request/url_fetcher.h"
namespace data_use_measurement {
@@ -40,9 +41,9 @@ const void* const DataUseUserData::kUserDataKey =
&DataUseUserData::kUserDataKey;
// static
-base::SupportsUserData::Data* DataUseUserData::Create(
+std::unique_ptr<base::SupportsUserData::Data> DataUseUserData::Create(
ServiceName service_name) {
- return new DataUseUserData(service_name, GetCurrentAppState());
+ return base::MakeUnique<DataUseUserData>(service_name, GetCurrentAppState());
}
// static
« no previous file with comments | « components/data_use_measurement/core/data_use_user_data.h ('k') | components/domain_reliability/uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698