| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import "ios/web_view/internal/criwv_web_main_delegate.h" | 5 #import "ios/web_view/internal/criwv_web_main_delegate.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
| 7 #import "ios/web_view/internal/criwv_web_client.h" | 8 #import "ios/web_view/internal/criwv_web_client.h" |
| 8 #import "ios/web_view/public/criwv_delegate.h" | 9 #import "ios/web_view/public/criwv_delegate.h" |
| 9 | 10 |
| 10 namespace ios_web_view { | 11 namespace ios_web_view { |
| 11 | 12 |
| 12 CRIWVWebMainDelegate::CRIWVWebMainDelegate(id<CRIWVDelegate> delegate) { | 13 CRIWVWebMainDelegate::CRIWVWebMainDelegate(id<CRIWVDelegate> delegate) |
| 13 delegate_ = delegate; | 14 : delegate_(delegate) {} |
| 14 } | |
| 15 | 15 |
| 16 CRIWVWebMainDelegate::~CRIWVWebMainDelegate() {} | 16 CRIWVWebMainDelegate::~CRIWVWebMainDelegate() {} |
| 17 | 17 |
| 18 void CRIWVWebMainDelegate::BasicStartupComplete() { | 18 void CRIWVWebMainDelegate::BasicStartupComplete() { |
| 19 web_client_.reset(new CRIWVWebClient(delegate_)); | 19 web_client_ = base::MakeUnique<CRIWVWebClient>(delegate_); |
| 20 web::SetWebClient(web_client_.get()); | 20 web::SetWebClient(web_client_.get()); |
| 21 } | 21 } |
| 22 | 22 |
| 23 } // namespace ios_web_view | 23 } // namespace ios_web_view |
| OLD | NEW |