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

Unified Diff: chrome/browser/prefs/active_profile_pref_service.h

Issue 2795883002: Eliminate OnConnect usage (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
Index: chrome/browser/prefs/active_profile_pref_service.h
diff --git a/chrome/browser/prefs/active_profile_pref_service.h b/chrome/browser/prefs/active_profile_pref_service.h
index 7c661b4aaec1b21c752739f43519225c0acc477c..1937da0a50b4d9e70f4788d859425aa88bb07a00 100644
--- a/chrome/browser/prefs/active_profile_pref_service.h
+++ b/chrome/browser/prefs/active_profile_pref_service.h
@@ -11,6 +11,7 @@
#include "components/prefs/pref_value_store.h"
#include "mojo/public/cpp/bindings/binding_set.h"
#include "services/preferences/public/interfaces/preferences.mojom.h"
+#include "services/service_manager/public/cpp/binder_registry.h"
#include "services/service_manager/public/cpp/interface_factory.h"
#include "services/service_manager/public/cpp/service.h"
@@ -41,14 +42,16 @@ class ActiveProfilePrefService : public prefs::mojom::PrefStoreConnector,
// service_manager::Service:
void OnStart() override;
- bool OnConnect(const service_manager::ServiceInfo& remote_info,
- service_manager::InterfaceRegistry* registry) override;
+ void OnBindInterface(const service_manager::ServiceInfo& source_info,
+ const std::string& interface_name,
+ mojo::ScopedMessagePipeHandle interface_pipe) override;
// Called if forwarding the connection request to the per-profile service
// instance failed.
void OnConnectError();
prefs::mojom::PrefStoreConnectorPtr connector_ptr_;
+ service_manager::BinderRegistry registry_;
mojo::BindingSet<prefs::mojom::PrefStoreConnector> connector_bindings_;
DISALLOW_COPY_AND_ASSIGN(ActiveProfilePrefService);
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/prefs/active_profile_pref_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698