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

Unified Diff: components/data_use_measurement/core/data_use_user_data.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: components/data_use_measurement/core/data_use_user_data.h
diff --git a/components/data_use_measurement/core/data_use_user_data.h b/components/data_use_measurement/core/data_use_user_data.h
index 584e7a52bd1950392907f5e5c5081d9110297271..0ea0ae8d43760846eb76d1cd095e0917745a7da4 100644
--- a/components/data_use_measurement/core/data_use_user_data.h
+++ b/components/data_use_measurement/core/data_use_user_data.h
@@ -5,6 +5,7 @@
#ifndef COMPONENTS_DATA_USE_MEASUREMENT_CORE_DATA_USE_USER_DATA_H_
#define COMPONENTS_DATA_USE_MEASUREMENT_CORE_DATA_USE_USER_DATA_H_
+#include <memory>
#include <string>
#include "base/macros.h"
@@ -96,9 +97,8 @@ class DataUseUserData : public base::SupportsUserData::Data {
DataUseUserData(ServiceName service_name, AppState app_state);
~DataUseUserData() override;
- // Helper function to create DataUseUserData. The caller takes the ownership
- // of the returned object.
- static base::SupportsUserData::Data* Create(
+ // Helper function to create DataUseUserData.
+ static std::unique_ptr<base::SupportsUserData::Data> Create(
DataUseUserData::ServiceName service);
// Return the service name of the ServiceName enum.

Powered by Google App Engine
This is Rietveld 408576698