Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Allow the user to manually set Chrome app name #379

Merged
merged 1 commit into from
Jul 14, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions mobile/android/android-device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ export class AndroidDevice implements Mobile.IAndroidDevice {
private $devicePlatformsConstants: Mobile.IDevicePlatformsConstants,
private $options: IOptions,
private $logcatHelper: Mobile.ILogcatHelper,
private $hostInfo: IHostInfo) {
private $hostInfo: IHostInfo,
private $config: IConfiguration) {
let details: IAndroidDeviceDetails = this.getDeviceDetails().wait();

this.model = details.model;
Expand Down Expand Up @@ -210,7 +211,7 @@ export class AndroidDevice implements Mobile.IAndroidDevice {
}

private openDebuggerClient(url: string): void {
let chrome = this.$hostInfo.isDarwin ? "Google\ Chrome" : "chrome";
let chrome = this.$hostInfo.isDarwin ? this.$config.ANDROID_DEBUG_UI_MAC : "chrome";
let child = this.$opener.open(url, chrome);
if(!child) {
this.$errors.fail(`Unable to open ${chrome}.`);
Expand Down