Commit 3d20816f authored by derat's avatar derat Committed by Commit bot

Remove windows.onCreated hack from Keep Awake extension.

The example extension for the chrome.power API registered a
listener for windows.onCreated to work around an issue where
runtime.onStartup didn't fire on Chrome OS. The underlying
Chrome bug has been fixed now, so the windows.onCreated
workaround is no longer needed.

BUG=222473
TEST=install the extension on Chrome OS and check that
     /var/log/power_manager/powerd.LATEST reports an
     extension-driven policy change when logging in

Review URL: https://codereview.chromium.org/531953002

Cr-Commit-Position: refs/heads/master@{#293043}
parent 9c8d4962
...@@ -95,8 +95,3 @@ chrome.browserAction.onClicked.addListener(function() { ...@@ -95,8 +95,3 @@ chrome.browserAction.onClicked.addListener(function() {
chrome.runtime.onStartup.addListener(function() { chrome.runtime.onStartup.addListener(function() {
loadSavedState(function(state) { setState(state); }); loadSavedState(function(state) { setState(state); });
}); });
// TODO(derat): Remove this once http://crbug.com/222473 is fixed.
chrome.windows.onCreated.addListener(function() {
loadSavedState(function(state) { setState(state); });
});
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"name": "__MSG_extensionName__", "name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__", "description": "__MSG_extensionDescription__",
"version": "1.7", "version": "1.8",
"icons": { "icons": {
"16": "images/icon-16.png", "16": "images/icon-16.png",
"48": "images/icon-48.png", "48": "images/icon-48.png",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment