Luis Héctor Chávez
2016/11/30 19:11:54
oh, I'm terribly sorry about this, I should have b
oh, I'm terribly sorry about this, I should have been moer explicit:
Code under components/ is not allowed to depend on chrome/, because it would
create a dependency cycle. In order to break the cycle one thing you can do is
introduce
class Delegate {
public:
virtual ~Delegate() = default;
virtual void MaintenanceSessionCreated() = 0;
virtual void MaintenanceSessionFinished() = 0;
}
in the ArcKioskBridge, and that delegate to the constructor of ArcKioskBridge.
You can make ArcKioskAppService implement that Delegate. You can then remove the
code from ArcAppListPrefs that creates (and holds) the reference to
ArcKioskAppService, and instead have the ArcServiceLauncher create the
ArcKioskBridge with the same condition it has right now:
https://cs.chromium.org/chromium/src/chrome/browser/ui/app_list/arc/arc_app_l...
On 2016/11/30 19:11:54, Luis Héctor Chávez wrote:
> oh, I'm terribly sorry about this, I should have been moer explicit:
>
> Code under components/ is not allowed to depend on chrome/, because it would
> create a dependency cycle. In order to break the cycle one thing you can do is
> introduce
>
> class Delegate {
> public:
> virtual ~Delegate() = default;
> virtual void MaintenanceSessionCreated() = 0;
> virtual void MaintenanceSessionFinished() = 0;
> }
>
> in the ArcKioskBridge, and that delegate to the constructor of ArcKioskBridge.
> You can make ArcKioskAppService implement that Delegate. You can then remove
the
> code from ArcAppListPrefs that creates (and holds) the reference to
> ArcKioskAppService, and instead have the ArcServiceLauncher create the
> ArcKioskBridge with the same condition it has right now:
>
https://cs.chromium.org/chromium/src/chrome/browser/ui/app_list/arc/arc_app_l...
Issue 2524673003: arc: Stop/start ARC++ kiosk app when maintenance session started/finished.
(Closed)
Created 4 years, 1 month ago by Sergey Poromov
Modified 4 years ago
Reviewers: Luis Héctor Chávez, Nikita (slow), Alex Chau, dcheng, hidehiko, stevenjb
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 46