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

Unified Diff: ash/common/system/tray/system_tray_controller.cc

Issue 2509853002: Convert //mash to define service names in mojom (Closed)
Patch Set: . Created 4 years, 1 month 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 | « ash/common/new_window_client_proxy.cc ('k') | ash/common/wallpaper/wallpaper_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/system_tray_controller.cc
diff --git a/ash/common/system/tray/system_tray_controller.cc b/ash/common/system/tray/system_tray_controller.cc
index 5513d3d13f38cb1dd56fdf6f056cda845a7ccdb7..7ce7e904e3e45a634c1391b28c9a3787d49f3778 100644
--- a/ash/common/system/tray/system_tray_controller.cc
+++ b/ash/common/system/tray/system_tray_controller.cc
@@ -8,6 +8,7 @@
#include "ash/common/wm_shell.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
+#include "content/public/common/service_names.mojom.h"
#include "services/service_manager/public/cpp/connector.h"
namespace ash {
@@ -128,7 +129,8 @@ bool SystemTrayController::ConnectToSystemTrayClient() {
return true;
// Connect (or reconnect) to the interface.
- connector_->ConnectToInterface("content_browser", &system_tray_client_);
+ connector_->ConnectToInterface(content::mojom::kBrowserServiceName,
+ &system_tray_client_);
// Handle chrome crashes by forcing a reconnect on the next request.
system_tray_client_.set_connection_error_handler(base::Bind(
« no previous file with comments | « ash/common/new_window_client_proxy.cc ('k') | ash/common/wallpaper/wallpaper_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698