Implement ChromeMain.