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

Unified Diff: chrome/browser/ui/passwords/passwords_client_ui_delegate.h

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « chrome/browser/ui/passwords/password_ui_view.h ('k') | chrome/browser/ui/pdf/adobe_reader_info_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/passwords/passwords_client_ui_delegate.h
diff --git a/chrome/browser/ui/passwords/passwords_client_ui_delegate.h b/chrome/browser/ui/passwords/passwords_client_ui_delegate.h
index 5093f79ece391abf33ebfb0826c9436fefcfdd05..b4198e5102ef80069b5dbb52f6e5baaeff5dda44 100644
--- a/chrome/browser/ui/passwords/passwords_client_ui_delegate.h
+++ b/chrome/browser/ui/passwords/passwords_client_ui_delegate.h
@@ -5,10 +5,10 @@
#ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_CLIENT_UI_DELEGATE_H_
#define CHROME_BROWSER_UI_PASSWORDS_PASSWORDS_CLIENT_UI_DELEGATE_H_
+#include <memory>
#include <vector>
#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "components/autofill/core/common/password_form.h"
@@ -29,13 +29,13 @@ class PasswordsClientUIDelegate {
// This stores the provided object and triggers the UI to prompt the user
// about whether they would like to save the password.
virtual void OnPasswordSubmitted(
- scoped_ptr<password_manager::PasswordFormManager> form_manager) = 0;
+ std::unique_ptr<password_manager::PasswordFormManager> form_manager) = 0;
// Called when the user submits a new password for an existing credential.
// This stores the provided object and triggers the UI to prompt the user
// about whether they would like to update the password.
virtual void OnUpdatePasswordSubmitted(
- scoped_ptr<password_manager::PasswordFormManager> form_manager) = 0;
+ std::unique_ptr<password_manager::PasswordFormManager> form_manager) = 0;
// Called when the site asks user to choose from credentials. This triggers
// the UI to prompt the user. |local_credentials| and |federated_credentials|
@@ -62,7 +62,7 @@ class PasswordsClientUIDelegate {
// Called when the password will be saved automatically, but we still wish to
// visually inform the user that the save has occured.
virtual void OnAutomaticPasswordSave(
- scoped_ptr<password_manager::PasswordFormManager> form_manager) = 0;
+ std::unique_ptr<password_manager::PasswordFormManager> form_manager) = 0;
// Called when a form is autofilled with login information, so we can manage
// password credentials for the current site which are stored in
@@ -72,7 +72,7 @@ class PasswordsClientUIDelegate {
virtual void OnPasswordAutofilled(
const autofill::PasswordFormMap& password_form_map,
const GURL& origin,
- const std::vector<scoped_ptr<autofill::PasswordForm>>*
+ const std::vector<std::unique_ptr<autofill::PasswordForm>>*
federated_matches) = 0;
protected:
« no previous file with comments | « chrome/browser/ui/passwords/password_ui_view.h ('k') | chrome/browser/ui/pdf/adobe_reader_info_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698