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

Unified Diff: components/password_manager/core/browser/statistics_table.h

Issue 1852093002: components/password_manager: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and revert an accidental .proto change Created 4 years, 9 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/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.

Powered by Google App Engine
This is Rietveld 408576698