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

Unified Diff: ios/web/public/web_controller_factory.mm

Issue 1874903003: Reversed WebState <-> CRWWebController ownership. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merged with origin/master Created 4 years, 8 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/public/web_controller_factory.h ('k') | ios/web/shell/view_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/web_controller_factory.mm
diff --git a/ios/web/public/web_controller_factory.mm b/ios/web/public/web_controller_factory.mm
deleted file mode 100644
index 2947af886ed372578ba6fbcc1c32b7d05fbab035..0000000000000000000000000000000000000000
--- a/ios/web/public/web_controller_factory.mm
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2015 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/public/web_controller_factory.h"
-
-#include <utility>
-
-#include "ios/web/public/browser_state.h"
-#import "ios/web/web_state/ui/crw_wk_web_view_web_controller.h"
-#include "ios/web/web_state/web_state_impl.h"
-
-namespace web {
-
-CRWWebController* CreateWebController(std::unique_ptr<WebStateImpl> web_state) {
- return
- [[CRWWKWebViewWebController alloc] initWithWebState:std::move(web_state)];
-}
-
-CRWWebController* CreateWebController(BrowserState* browser_state) {
- DCHECK(browser_state);
- std::unique_ptr<web::WebStateImpl> web_state(
- new web::WebStateImpl(browser_state));
- web_state->GetNavigationManagerImpl().InitializeSession(nil, nil, NO, -1);
- return CreateWebController(std::move(web_state));
-}
-
-} // namespace web
« no previous file with comments | « ios/web/public/web_controller_factory.h ('k') | ios/web/shell/view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698