Index: components/password_manager/core/browser/statistics_table.h |
diff --git a/components/password_manager/core/browser/statistics_table.h b/components/password_manager/core/browser/statistics_table.h |
index 22dd11e845c44b9c23a72ce3e37055df12e21326..d53c849106e98b951236d1c6ff542f22cc1f8c8f 100644 |
--- a/components/password_manager/core/browser/statistics_table.h |
+++ b/components/password_manager/core/browser/statistics_table.h |
@@ -5,10 +5,10 @@ |
#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STATISTICS_TABLE_H_ |
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STATISTICS_TABLE_H_ |
+#include <memory> |
#include <vector> |
#include "base/macros.h" |
-#include "base/memory/scoped_ptr.h" |
#include "base/memory/scoped_vector.h" |
#include "base/time/time.h" |
#include "url/gurl.h" |
@@ -40,7 +40,7 @@ bool operator==(const InteractionsStats& lhs, const InteractionsStats& rhs); |
// Returns an element from |stats| with |username| or nullptr if not found. |
InteractionsStats* FindStatsByUsername( |
- const std::vector<scoped_ptr<InteractionsStats>>& stats, |
+ const std::vector<std::unique_ptr<InteractionsStats>>& stats, |
const base::string16& username); |
// Represents the 'stats' table in the Login Database. |
@@ -69,7 +69,7 @@ class StatisticsTable { |
bool RemoveRow(const GURL& domain); |
// Returns the statistics for |domain| if it exists. |
- std::vector<scoped_ptr<InteractionsStats>> GetRows(const GURL& domain); |
+ std::vector<std::unique_ptr<InteractionsStats>> GetRows(const GURL& domain); |
// Removes the statistics between the dates. Returns true if the SQL completed |
// successfully. |