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

Unified Diff: chrome/common/extensions/docs/apps/app_lifecycle.html

Issue 10834261: Move chrome.experimental.app.onLaunched event handler to chrome.app.runtime.onLaunched. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced/merged, resolved conflicts. Created 8 years, 4 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/apps/app_lifecycle.html
diff --git a/chrome/common/extensions/docs/apps/app_lifecycle.html b/chrome/common/extensions/docs/apps/app_lifecycle.html
index 4d059aef1608b799bdd7023732de86e2c50986ac..48181cbd0eb6631cb33e3dcea15ad112bd2eec61 100644
--- a/chrome/common/extensions/docs/apps/app_lifecycle.html
+++ b/chrome/common/extensions/docs/apps/app_lifecycle.html
@@ -255,7 +255,7 @@ Your event page must include the <code>onLaunched()</code> function.
This function is called
when your application is launched in any way:
</p>
-<pre>chrome.experimental.app.onLaunched.addListener(function() {
+<pre>chrome.app.runtime.onLaunched.addListener(function() {
// Tell your app what to launch and how.
});
</pre>
@@ -274,7 +274,7 @@ for example, a chat panel.
</p>
<p>Here's a sample <code>background.js</code>
with a 'shell' window:</p>
-<pre>chrome.experimental.app.onLaunched.addListener(function() {
+<pre>chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('main.html', {
width: 800,
height: 600,
@@ -289,7 +289,7 @@ for example, a chat panel.
<p>Here's a sample <code>background.js</code>
with a 'panel' window:
</p>
-<pre>chrome.experimental.app.onLaunched.addListener(function() {
+<pre>chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
width: 400,
height: 200,

Powered by Google App Engine
This is Rietveld 408576698