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

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

Issue 2679003002: Initialize CRIWVWebView with Configuration object instead of browserState. (Closed)
Patch Set: Respond to comments. Created 3 years, 10 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_view_configuration.mm
diff --git a/ios/web_view/internal/criwv_web_view_configuration.mm b/ios/web_view/internal/criwv_web_view_configuration.mm
new file mode 100644
index 0000000000000000000000000000000000000000..f489c2f533ea323f7e9c34ece68286ed1e988dc6
--- /dev/null
+++ b/ios/web_view/internal/criwv_web_view_configuration.mm
@@ -0,0 +1,25 @@
+// Copyright 2017 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/public/criwv_web_view_configuration.h"
+
+#import "ios/web_view/public/criwv_website_data_store.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
+@implementation CRIWVWebViewConfiguration
+
+@synthesize websiteDataStore = _websiteDataStore;
+
+- (instancetype)init {
+ self = [super init];
+ if (self) {
+ self.websiteDataStore = [CRIWVWebsiteDataStore defaultDataStore];
Eugene But (OOO till 7-30) 2017/02/07 01:27:46 s/self.websiteDataStore/_websiteDataStore https:/
michaeldo 2017/02/08 20:40:48 Done.
+ }
+ return self;
+}
+
+@end

Powered by Google App Engine
This is Rietveld 408576698