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

Unified Diff: ios/web/web_state/web_state_impl.mm

Issue 2847743003: Eliminate InterfaceRegistry (Closed)
Patch Set: . Created 3 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/web_state/web_state_impl.h ('k') | ios/web/webui/mojo_facade_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/web_state_impl.mm
diff --git a/ios/web/web_state/web_state_impl.mm b/ios/web/web_state/web_state_impl.mm
index 5b8cc73659a090aac16b6e51df19a041ced32163..b5a047dccfdfc0b54760ee71daacc47564f3f2ee 100644
--- a/ios/web/web_state/web_state_impl.mm
+++ b/ios/web/web_state/web_state_impl.mm
@@ -24,6 +24,7 @@
#import "ios/web/public/web_state/context_menu_params.h"
#import "ios/web/public/web_state/ui/crw_content_view.h"
#import "ios/web/public/web_state/web_state_delegate.h"
+#include "ios/web/public/web_state/web_state_interface_provider.h"
#include "ios/web/public/web_state/web_state_observer.h"
#import "ios/web/public/web_state/web_state_policy_decider.h"
#include "ios/web/public/web_thread.h"
@@ -36,7 +37,6 @@
#include "ios/web/webui/web_ui_ios_controller_factory_registry.h"
#include "ios/web/webui/web_ui_ios_impl.h"
#include "net/http/http_response_headers.h"
-#include "services/service_manager/public/cpp/interface_registry.h"
namespace web {
@@ -540,12 +540,12 @@ bool WebStateImpl::ShouldAllowResponse(NSURLResponse* response) {
#pragma mark - RequestTracker management
-service_manager::InterfaceRegistry* WebStateImpl::GetMojoInterfaceRegistry() {
- if (!mojo_interface_registry_) {
- mojo_interface_registry_ =
- base::MakeUnique<service_manager::InterfaceRegistry>(std::string());
+WebStateInterfaceProvider* WebStateImpl::GetWebStateInterfaceProvider() {
+ if (!web_state_interface_provider_) {
+ web_state_interface_provider_ =
+ base::MakeUnique<WebStateInterfaceProvider>();
}
- return mojo_interface_registry_.get();
+ return web_state_interface_provider_.get();
}
base::WeakPtr<WebState> WebStateImpl::AsWeakPtr() {
« no previous file with comments | « ios/web/web_state/web_state_impl.h ('k') | ios/web/webui/mojo_facade_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698