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

Unified Diff: ios/web/web_state/ui/crw_ui_web_view_web_controller.mm

Issue 1586833002: Convert Pass()→std::move() for iOS build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/web/web_state/ui/crw_ui_web_view_web_controller.mm
diff --git a/ios/web/web_state/ui/crw_ui_web_view_web_controller.mm b/ios/web/web_state/ui/crw_ui_web_view_web_controller.mm
index c9e836d76b9cb8c912310f3c8a3e5cf1475e9ae4..c78e0c0901a618975b76fd46e9383ba870bfbef1 100644
--- a/ios/web/web_state/ui/crw_ui_web_view_web_controller.mm
+++ b/ios/web/web_state/ui/crw_ui_web_view_web_controller.mm
@@ -7,6 +7,8 @@
#include <stddef.h>
#include <stdint.h>
+#include <utility>
+
#import "base/ios/ios_util.h"
#import "base/ios/ns_error_util.h"
#import "base/ios/weak_nsobject.h"
@@ -328,7 +330,7 @@ const size_t kMaxMessageQueueSize = 262144;
@implementation CRWUIWebViewWebController
- (instancetype)initWithWebState:(scoped_ptr<web::WebStateImpl>)webState {
- self = [super initWithWebState:webState.Pass()];
+ self = [super initWithWebState:std::move(webState)];
if (self) {
_jsInvokeParameterQueue.reset([[CRWJSInvokeParameterQueue alloc] init]);

Powered by Google App Engine
This is Rietveld 408576698