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

Unified Diff: ios/web/webui/web_ui_mojo_inttest.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/webui/mojo_facade_unittest.mm ('k') | media/mojo/services/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/webui/web_ui_mojo_inttest.mm
diff --git a/ios/web/webui/web_ui_mojo_inttest.mm b/ios/web/webui/web_ui_mojo_inttest.mm
index d709279c517a370eaca5ade16f4265ec98bc9e6d..12d62cee2fe744bcb6fec047cf3bef4f7cb6e692 100644
--- a/ios/web/webui/web_ui_mojo_inttest.mm
+++ b/ios/web/webui/web_ui_mojo_inttest.mm
@@ -9,6 +9,7 @@
#import "base/test/ios/wait_util.h"
#include "base/threading/thread_task_runner_handle.h"
#import "ios/web/public/navigation_manager.h"
+#include "ios/web/public/web_state/web_state_interface_provider.h"
#include "ios/web/public/web_ui_ios_data_source.h"
#include "ios/web/public/webui/web_ui_ios_controller.h"
#include "ios/web/public/webui/web_ui_ios_controller_factory.h"
@@ -20,7 +21,6 @@
#import "ios/web/web_state/web_state_impl.h"
#include "mojo/public/cpp/bindings/binding_set.h"
#include "services/service_manager/public/cpp/identity.h"
-#include "services/service_manager/public/cpp/interface_registry.h"
#include "url/gurl.h"
#include "url/scheme_host_port.h"
@@ -103,7 +103,8 @@ class TestUI : public WebUIIOSController {
web::WebState* web_state = web_ui->GetWebState();
web::WebUIIOSDataSource::Add(web_state->GetBrowserState(), source);
- web_state->GetMojoInterfaceRegistry()->AddInterface(ui_handler);
+ web_state->GetWebStateInterfaceProvider()->registry()->AddInterface(
+ ui_handler);
}
};
« no previous file with comments | « ios/web/webui/mojo_facade_unittest.mm ('k') | media/mojo/services/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698