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

Unified Diff: ios/web_view/internal/criwv_web_main_delegate.mm

Issue 2650323002: Cleanup ios/web_view. (Closed)
Patch Set: Created 3 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_view/internal/criwv_web_main_delegate.mm
diff --git a/ios/web_view/internal/criwv_web_main_delegate.mm b/ios/web_view/internal/criwv_web_main_delegate.mm
index 2a170cd617ce0343ebb18002260b1c87bd5b56d9..afa4ad1ca3b1cfbb8df0716ba26b9e984c2ef35b 100644
--- a/ios/web_view/internal/criwv_web_main_delegate.mm
+++ b/ios/web_view/internal/criwv_web_main_delegate.mm
@@ -4,19 +4,19 @@
#import "ios/web_view/internal/criwv_web_main_delegate.h"
+#include "base/memory/ptr_util.h"
#import "ios/web_view/internal/criwv_web_client.h"
#import "ios/web_view/public/criwv_delegate.h"
namespace ios_web_view {
-CRIWVWebMainDelegate::CRIWVWebMainDelegate(id<CRIWVDelegate> delegate) {
- delegate_ = delegate;
-}
+CRIWVWebMainDelegate::CRIWVWebMainDelegate(id<CRIWVDelegate> delegate)
+ : delegate_(delegate) {}
CRIWVWebMainDelegate::~CRIWVWebMainDelegate() {}
void CRIWVWebMainDelegate::BasicStartupComplete() {
- web_client_.reset(new CRIWVWebClient(delegate_));
+ web_client_ = base::MakeUnique<CRIWVWebClient>(delegate_);
web::SetWebClient(web_client_.get());
}

Powered by Google App Engine
This is Rietveld 408576698