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

Unified Diff: ios/chrome/browser/autofill/form_suggestion_controller.mm

Issue 1861593005: Convert //ios 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
Index: ios/chrome/browser/autofill/form_suggestion_controller.mm
diff --git a/ios/chrome/browser/autofill/form_suggestion_controller.mm b/ios/chrome/browser/autofill/form_suggestion_controller.mm
index 9eba0a4d61b8fcb0954b8fbcfb33390bb9f25032..71a5d783d5b4e5f1c841b0424d17c1c6c417986c 100644
--- a/ios/chrome/browser/autofill/form_suggestion_controller.mm
+++ b/ios/chrome/browser/autofill/form_suggestion_controller.mm
@@ -4,12 +4,13 @@
#import "ios/chrome/browser/autofill/form_suggestion_controller.h"
+#include <memory>
+
#include "base/ios/ios_util.h"
#include "base/ios/weak_nsobject.h"
#include "base/mac/foundation_util.h"
#include "base/mac/scoped_block.h"
#include "base/mac/scoped_nsobject.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/sys_string_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/core/browser/autofill_field_trial_ios.h"
@@ -59,7 +60,7 @@ AutofillSuggestionState::AutofillSuggestionState(const std::string& form_name,
accessoryViewUpdateBlock_;
// Autofill suggestion state.
- scoped_ptr<AutofillSuggestionState> _suggestionState;
+ std::unique_ptr<AutofillSuggestionState> _suggestionState;
// Providers for suggestions, sorted according to the order in which
// they should be asked for suggestions, with highest priority in front.
@@ -85,7 +86,7 @@ AutofillSuggestionState::AutofillSuggestionState(const std::string& form_name,
@implementation FormSuggestionController {
// Bridge to observe the web state from Objective-C.
- scoped_ptr<web::WebStateObserverBridge> _webStateObserverBridge;
+ std::unique_ptr<web::WebStateObserverBridge> _webStateObserverBridge;
// Manager for FormSuggestion JavaScripts.
base::scoped_nsobject<JsSuggestionManager> _jsSuggestionManager;

Powered by Google App Engine
This is Rietveld 408576698