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

Unified Diff: mash/app_driver/app_driver.cc

Issue 2389133008: Mash: Replaces "exe:chrome" with "service:content_browser" (Closed)
Patch Set: rebase 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
« no previous file with comments | « chrome/test/base/mojo_test_connector.cc ('k') | mash/session/session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/app_driver/app_driver.cc
diff --git a/mash/app_driver/app_driver.cc b/mash/app_driver/app_driver.cc
index e3b00ff334a65645fd64c05c48bf4c2d0b79f797..ed8976d6094f44ea30a8a23a0832930b3c20fd3c 100644
--- a/mash/app_driver/app_driver.cc
+++ b/mash/app_driver/app_driver.cc
@@ -20,6 +20,8 @@ namespace mash {
namespace app_driver {
namespace {
+const char kBrowserServiceName[] = "service:content_browser";
+
enum class Accelerator : uint32_t {
NewChromeWindow,
NewChromeTab,
@@ -109,11 +111,11 @@ void AppDriver::OnAccelerator(uint32_t id, std::unique_ptr<ui::Event> event) {
std::map<Accelerator, LaunchOptions> options{
{Accelerator::NewChromeWindow,
- {mojom::kWindow, "exe:chrome", LaunchMode::MAKE_NEW}},
+ {mojom::kWindow, kBrowserServiceName, LaunchMode::MAKE_NEW}},
{Accelerator::NewChromeTab,
- {mojom::kDocument, "exe:chrome", LaunchMode::MAKE_NEW}},
+ {mojom::kDocument, kBrowserServiceName, LaunchMode::MAKE_NEW}},
{Accelerator::NewChromeIncognitoWindow,
- {mojom::kIncognitoWindow, "exe:chrome", LaunchMode::MAKE_NEW}},
+ {mojom::kIncognitoWindow, kBrowserServiceName, LaunchMode::MAKE_NEW}},
{Accelerator::ShowTaskManager,
{mojom::kWindow, "service:task_viewer", LaunchMode::DEFAULT}},
};
« no previous file with comments | « chrome/test/base/mojo_test_connector.cc ('k') | mash/session/session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698