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

Unified Diff: components/password_manager/core/browser/password_store_consumer.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/password_store_consumer.h
diff --git a/components/password_manager/core/browser/password_store_consumer.h b/components/password_manager/core/browser/password_store_consumer.h
index ffd5ee9e75d2f2191e24daba93f1ab7ddfa384c5..264cafaabafc2233be258c5265380566971fa2d2 100644
--- a/components/password_manager/core/browser/password_store_consumer.h
+++ b/components/password_manager/core/browser/password_store_consumer.h
@@ -5,9 +5,9 @@
#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_CONSUMER_H_
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_CONSUMER_H_
+#include <memory>
#include <vector>
-#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/task/cancelable_task_tracker.h"
@@ -34,10 +34,10 @@ class PasswordStoreConsumer {
ScopedVector<autofill::PasswordForm> results) = 0;
// TODO(crbug.com/561749): The argument's type would ideally be just
- // std::vector<scoped_ptr<InteractionsStats>>, but currently it is not
+ // std::vector<std::unique_ptr<InteractionsStats>>, but currently it is not
// possible to pass that into a callback.
virtual void OnGetSiteStatistics(
- scoped_ptr<std::vector<scoped_ptr<InteractionsStats>>> stats);
+ std::unique_ptr<std::vector<std::unique_ptr<InteractionsStats>>> stats);
// The base::CancelableTaskTracker can be used for cancelling the
// tasks associated with the consumer.

Powered by Google App Engine
This is Rietveld 408576698