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

Unified Diff: chrome/browser/password_manager/password_store_mac.h

Issue 1858513002: chrome/browser/password_manager: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows -- revert unwanted change Created 4 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: chrome/browser/password_manager/password_store_mac.h
diff --git a/chrome/browser/password_manager/password_store_mac.h b/chrome/browser/password_manager/password_store_mac.h
index 14484e5d84d9f7250c916da2be0536ba0b19b392..9d0682aeedafae8b9668f567f4fcb1e0fb439286 100644
--- a/chrome/browser/password_manager/password_store_mac.h
+++ b/chrome/browser/password_manager/password_store_mac.h
@@ -5,12 +5,12 @@
#ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_
#define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_
+#include <memory>
#include <string>
#include <vector>
#include "base/callback_forward.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/threading/thread.h"
#include "components/password_manager/core/browser/login_database.h"
@@ -44,7 +44,7 @@ class PasswordStoreMac : public password_manager::PasswordStore {
PasswordStoreMac(
scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner,
scoped_refptr<base::SingleThreadTaskRunner> db_thread_runner,
- scoped_ptr<crypto::AppleKeychain> keychain);
+ std::unique_ptr<crypto::AppleKeychain> keychain);
// Sets the background thread.
void InitWithTaskRunner(
@@ -102,8 +102,8 @@ class PasswordStoreMac : public password_manager::PasswordStore {
void AddSiteStatsImpl(
const password_manager::InteractionsStats& stats) override;
void RemoveSiteStatsImpl(const GURL& origin_domain) override;
- std::vector<scoped_ptr<password_manager::InteractionsStats>> GetSiteStatsImpl(
- const GURL& origin_domain) override;
+ std::vector<std::unique_ptr<password_manager::InteractionsStats>>
+ GetSiteStatsImpl(const GURL& origin_domain) override;
// Adds the given form to the Keychain if it's something we want to store
// there (i.e., not a blacklist entry or a federated login). Returns true if
@@ -129,7 +129,7 @@ class PasswordStoreMac : public password_manager::PasswordStore {
// |orphaned_forms|.
void CleanOrphanedForms(ScopedVector<autofill::PasswordForm>* orphaned_forms);
- scoped_ptr<crypto::AppleKeychain> keychain_;
+ std::unique_ptr<crypto::AppleKeychain> keychain_;
// The login metadata SQL database. The caller is resonsible for initializing
// it.
« no previous file with comments | « chrome/browser/password_manager/password_store_factory.cc ('k') | chrome/browser/password_manager/password_store_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698