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

Unified Diff: content/common/mojo/service_registry_impl.cc

Issue 1806843005: Promote {Add,Clear}ServiceOverrideForTesting to ServiceRegistry public interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nit. Created 4 years, 9 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 | « content/common/mojo/service_registry_impl.h ('k') | content/public/common/service_registry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/mojo/service_registry_impl.cc
diff --git a/content/common/mojo/service_registry_impl.cc b/content/common/mojo/service_registry_impl.cc
index 5e3b4157638b7572b7a0416f9eb15f833e63c105..b26c60990bed5340a32939e2b7aca464966ff46e 100644
--- a/content/common/mojo/service_registry_impl.cc
+++ b/content/common/mojo/service_registry_impl.cc
@@ -39,16 +39,6 @@ void ServiceRegistryImpl::BindRemoteServiceProvider(
}
}
-void ServiceRegistryImpl::AddServiceOverrideForTesting(
- const std::string& service_name,
- const ServiceFactory& factory) {
- service_overrides_[service_name] = factory;
-}
-
-void ServiceRegistryImpl::ClearServiceOverridesForTesting() {
- service_overrides_.clear();
-}
-
void ServiceRegistryImpl::AddService(const std::string& service_name,
const ServiceFactory service_factory) {
service_factories_[service_name] = service_factory;
@@ -76,6 +66,16 @@ void ServiceRegistryImpl::ConnectToRemoteService(
mojo::String::From(service_name.as_string()), std::move(handle));
}
+void ServiceRegistryImpl::AddServiceOverrideForTesting(
+ const std::string& service_name,
+ const ServiceFactory& factory) {
+ service_overrides_[service_name] = factory;
+}
+
+void ServiceRegistryImpl::ClearServiceOverridesForTesting() {
+ service_overrides_.clear();
+}
+
bool ServiceRegistryImpl::IsBound() const {
return binding_.is_bound();
}
« no previous file with comments | « content/common/mojo/service_registry_impl.h ('k') | content/public/common/service_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698