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

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

Issue 2653083002: Cleanup ios/web_view. (Closed)
Patch Set: Respond to more comments. 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
« no previous file with comments | « ios/web_view/internal/criwv_web_main_delegate.h ('k') | ios/web_view/internal/criwv_web_main_parts.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
new file mode 100644
index 0000000000000000000000000000000000000000..afa4ad1ca3b1cfbb8df0716ba26b9e984c2ef35b
--- /dev/null
+++ b/ios/web_view/internal/criwv_web_main_delegate.mm
@@ -0,0 +1,23 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#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() {}
+
+void CRIWVWebMainDelegate::BasicStartupComplete() {
+ web_client_ = base::MakeUnique<CRIWVWebClient>(delegate_);
+ web::SetWebClient(web_client_.get());
+}
+
+} // namespace ios_web_view
« no previous file with comments | « ios/web_view/internal/criwv_web_main_delegate.h ('k') | ios/web_view/internal/criwv_web_main_parts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698