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

Unified Diff: ios/chrome/browser/autofill/form_input_accessory_view_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_input_accessory_view_controller.mm
diff --git a/ios/chrome/browser/autofill/form_input_accessory_view_controller.mm b/ios/chrome/browser/autofill/form_input_accessory_view_controller.mm
index 4e819f43ad6e62a72e675a9b0e7947bb806d4e72..9185c637ed065e30f712dd5cd3d25a6b586f540a 100644
--- a/ios/chrome/browser/autofill/form_input_accessory_view_controller.mm
+++ b/ios/chrome/browser/autofill/form_input_accessory_view_controller.mm
@@ -4,12 +4,13 @@
#import "ios/chrome/browser/autofill/form_input_accessory_view_controller.h"
+#include <memory>
+
#include "base/ios/block_types.h"
#include "base/ios/ios_util.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"
#import "components/autofill/core/browser/keyboard_accessory_metrics_logger.h"
#import "components/autofill/ios/browser/js_suggestion_manager.h"
#import "ios/chrome/browser/autofill/form_input_accessory_view.h"
@@ -198,7 +199,7 @@ bool ComputeFramesOfKeyboardParts(UIView* inputAccessoryView,
@implementation FormInputAccessoryViewController {
// Bridge to observe the web state from Objective-C.
- scoped_ptr<web::WebStateObserverBridge> _webStateObserverBridge;
+ std::unique_ptr<web::WebStateObserverBridge> _webStateObserverBridge;
// Last registered keyboard rectangle.
CGRect _keyboardFrame;
@@ -224,7 +225,7 @@ bool ComputeFramesOfKeyboardParts(UIView* inputAccessoryView,
base::WeakNSProtocol<id<FormInputAccessoryViewProvider>> _currentProvider;
// Logs UMA metrics for the keyboard accessory.
- scoped_ptr<autofill::KeyboardAccessoryMetricsLogger>
+ std::unique_ptr<autofill::KeyboardAccessoryMetricsLogger>
_keyboardAccessoryMetricsLogger;
}

Powered by Google App Engine
This is Rietveld 408576698