Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4318)

Unified Diff: chrome/common/extensions/docs/examples/api/eventPage/basic/background.js

Issue 10310182: Hack to restrict runtime API to dev channel rather than experimental. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: docs Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/examples/api/eventPage/basic/background.js
diff --git a/chrome/common/extensions/docs/examples/api/eventPage/basic/background.js b/chrome/common/extensions/docs/examples/api/eventPage/basic/background.js
index e9b2d250e369f12e4c217641ec6db411abae00c2..606eb94c1dd7621f6cd08752924e92187a6d3258 100644
--- a/chrome/common/extensions/docs/examples/api/eventPage/basic/background.js
+++ b/chrome/common/extensions/docs/examples/api/eventPage/basic/background.js
@@ -18,7 +18,7 @@ sendMessage();
chrome.browserAction.setBadgeText({text: "ON"});
console.log("Loaded.");
-chrome.experimental.runtime.onInstalled.addListener(function() {
+chrome.runtime.onInstalled.addListener(function() {
console.log("Installed.");
// localStorage is persisted, so it's a good place to keep state that you
@@ -79,7 +79,7 @@ chrome.alarms.onAlarm.addListener(function() {
alert("Time's up!");
});
-chrome.experimental.runtime.onBackgroundPageUnloadingSoon.addListener(
+chrome.runtime.onBackgroundPageUnloadingSoon.addListener(
function() {
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
// After the unload event listener runs, the page will unload, so any
« no previous file with comments | « chrome/common/extensions/docs/examples/api/eventPage/basic.zip ('k') | chrome/common/extensions/docs/experimental.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698