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

Unified Diff: components/autofill/content/browser/content_autofill_driver.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/content/browser/content_autofill_driver.h
diff --git a/components/autofill/content/browser/content_autofill_driver.h b/components/autofill/content/browser/content_autofill_driver.h
index 61bc6902e4d73264ae00eed9651c86ed2a596cd3..c0dda594a42375f6221b70c69ba0153110c4c793 100644
--- a/components/autofill/content/browser/content_autofill_driver.h
+++ b/components/autofill/content/browser/content_autofill_driver.h
@@ -5,9 +5,9 @@
#ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_
#define COMPONENTS_AUTOFILL_CONTENT_BROWSER_CONTENT_AUTOFILL_DRIVER_H_
+#include <memory>
#include <string>
-#include "base/memory/scoped_ptr.h"
#include "base/supports_user_data.h"
#include "components/autofill/content/browser/request_autocomplete_manager.h"
#include "components/autofill/core/browser/autofill_driver.h"
@@ -81,7 +81,7 @@ class ContentAutofillDriver : public AutofillDriver {
protected:
// Sets the manager to |manager| and sets |manager|'s external delegate
// to |autofill_external_delegate_|. Takes ownership of |manager|.
- void SetAutofillManager(scoped_ptr<AutofillManager> manager);
+ void SetAutofillManager(std::unique_ptr<AutofillManager> manager);
private:
// Weak ref to the RenderFrameHost the driver is associated with. Should
@@ -93,7 +93,7 @@ class ContentAutofillDriver : public AutofillDriver {
// AutofillManager instance via which this object drives the shared Autofill
// code.
- scoped_ptr<AutofillManager> autofill_manager_;
+ std::unique_ptr<AutofillManager> autofill_manager_;
// AutofillExternalDelegate instance that this object instantiates in the
// case where the Autofill native UI is enabled.

Powered by Google App Engine
This is Rietveld 408576698