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

Unified Diff: chrome/browser/chromeos/chrome_interface_factory.cc

Issue 2381753002: Use mojo SystemTray interfaces for both mash and classic ash (Closed)
Patch Set: rebase again Created 4 years, 2 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/chromeos/chrome_interface_factory.cc
diff --git a/chrome/browser/chromeos/chrome_interface_factory.cc b/chrome/browser/chromeos/chrome_interface_factory.cc
index 6411e47cb5fb7572039e095ef5924b46ec6c0db4..03f13538b42cf0c1effd4afbb6ab96269fece0ca 100644
--- a/chrome/browser/chromeos/chrome_interface_factory.cc
+++ b/chrome/browser/chromeos/chrome_interface_factory.cc
@@ -6,6 +6,7 @@
#include <memory>
+#include "ash/common/mojo_interface_factory.h"
#include "ash/public/interfaces/wallpaper.mojom.h"
#include "base/lazy_instance.h"
#include "base/memory/weak_ptr.h"
@@ -14,6 +15,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/ash/app_list/app_list_presenter_service.h"
+#include "chrome/browser/ui/ash/ash_util.h"
#include "chrome/browser/ui/ash/chrome_wallpaper_manager.h"
#include "chrome/browser/ui/ash/keyboard_ui_service.h"
#include "chrome/browser/ui/ash/system_tray_client.h"
@@ -169,6 +171,13 @@ bool ChromeInterfaceFactory::OnConnect(const shell::Identity& remote_identity,
registry, main_thread_task_runner_);
FactoryImpl::AddFactory<app_list::mojom::AppListPresenter>(
registry, main_thread_task_runner_);
+
+ // In classic ash, the browser process provides ash services to itself.
+ if (!chrome::IsRunningInMash()) {
+ ash::mojo_interface_factory::RegisterInterfaces(registry,
+ main_thread_task_runner_);
+ }
+
return true;
}

Powered by Google App Engine
This is Rietveld 408576698