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

Unified Diff: components/autofill/core/browser/webdata/autofill_table.h

Issue 1859453002: components/autofill: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed 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: components/autofill/core/browser/webdata/autofill_table.h
diff --git a/components/autofill/core/browser/webdata/autofill_table.h b/components/autofill/core/browser/webdata/autofill_table.h
index 6bcf0676fc2a3232aa7d05e61a54bc3f31d767ef..b0b949cb6d2f39cae0d21a362100a795377c1581 100644
--- a/components/autofill/core/browser/webdata/autofill_table.h
+++ b/components/autofill/core/browser/webdata/autofill_table.h
@@ -7,11 +7,11 @@
#include <stddef.h>
+#include <memory>
#include <vector>
#include "base/gtest_prod_util.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/strings/string16.h"
#include "components/webdata/common/web_database_table.h"
@@ -307,7 +307,7 @@ class AutofillTable : public WebDatabaseTable {
virtual bool RemoveAutofillProfile(const std::string& guid);
// Retrieves a profile with guid |guid|.
- scoped_ptr<AutofillProfile> GetAutofillProfile(const std::string& guid);
+ std::unique_ptr<AutofillProfile> GetAutofillProfile(const std::string& guid);
// Retrieves local/server profiles in the database. Caller owns the returned
// profiles.
@@ -330,7 +330,7 @@ class AutofillTable : public WebDatabaseTable {
bool RemoveCreditCard(const std::string& guid);
// Retrieves a credit card with guid |guid|.
- scoped_ptr<CreditCard> GetCreditCard(const std::string& guid);
+ std::unique_ptr<CreditCard> GetCreditCard(const std::string& guid);
// Retrieves the local/server credit cards in the database. Caller owns the
// returned credit cards.

Powered by Google App Engine
This is Rietveld 408576698