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

Unified Diff: chromeos/dbus/dbus_thread_manager.cc

Issue 2791983004: DBus MediaAnalyticsClient and media_perception pb. (Closed)
Patch Set: Changing the type of a couple vars to const. Created 3 years, 7 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 | « chromeos/dbus/dbus_thread_manager.h ('k') | chromeos/dbus/fake_media_analytics_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/dbus_thread_manager.cc
diff --git a/chromeos/dbus/dbus_thread_manager.cc b/chromeos/dbus/dbus_thread_manager.cc
index fcb59a0c62836d7d836b034b43807065132674db..df44f2830246216b6d714fc7ced5f4c8e57df38a 100644
--- a/chromeos/dbus/dbus_thread_manager.cc
+++ b/chromeos/dbus/dbus_thread_manager.cc
@@ -26,6 +26,7 @@
#include "chromeos/dbus/image_burner_client.h"
#include "chromeos/dbus/image_loader_client.h"
#include "chromeos/dbus/lorgnette_manager_client.h"
+#include "chromeos/dbus/media_analytics_client.h"
#include "chromeos/dbus/modem_messaging_client.h"
#include "chromeos/dbus/permission_broker_client.h"
#include "chromeos/dbus/power_manager_client.h"
@@ -188,6 +189,11 @@ ImageLoaderClient* DBusThreadManager::GetImageLoaderClient() {
: nullptr;
}
+MediaAnalyticsClient* DBusThreadManager::GetMediaAnalyticsClient() {
+ return clients_browser_ ? clients_browser_->media_analytics_client_.get()
+ : nullptr;
+}
+
ModemMessagingClient* DBusThreadManager::GetModemMessagingClient() {
return clients_common_->modem_messaging_client_.get();
}
@@ -379,6 +385,12 @@ void DBusThreadManagerSetter::SetImageLoaderClient(
std::move(client);
}
+void DBusThreadManagerSetter::SetMediaAnalyticsClient(
+ std::unique_ptr<MediaAnalyticsClient> client) {
+ DBusThreadManager::Get()->clients_browser_->media_analytics_client_ =
+ std::move(client);
+}
+
void DBusThreadManagerSetter::SetPermissionBrokerClient(
std::unique_ptr<PermissionBrokerClient> client) {
DBusThreadManager::Get()->clients_common_->permission_broker_client_ =
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.h ('k') | chromeos/dbus/fake_media_analytics_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698