use new chrome extension api.