By the power of Grayskull!

Chrmome extension版のTweetDeckを日常的に使っている。
あのLanuncherアイコンを押すと本体が新しいタブで立ち上がるって処理はどうやってるんだろう、と疑問に思ってソースコード見てみたら笑ってしまった。コメントが面白い。

function launchApp(app) {
	if (app.enabled) {
		chrome.tabs.create({ url : app.appLaunchUrl});
		return;
	} else {
		// "By the power of Grayskull! Give me apps beyond apps!"
		chrome.management.setEnabled(app.id, true, function () {
			chrome.tabs.create({ url : app.appLaunchUrl});
		});
	}
}

本体がdisabledになっている場合、無理やりenabledに変更してアプリを立ち上げてるのな。
うーん謎仕様。