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

Unified Diff: native_client_sdk/src/examples/demo/drive/background.js

Issue 14500010: [NaCl SDK] Google Drive example (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 7 years, 8 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: native_client_sdk/src/examples/demo/drive/background.js
diff --git a/native_client_sdk/src/examples/resources/background.js b/native_client_sdk/src/examples/demo/drive/background.js
similarity index 60%
copy from native_client_sdk/src/examples/resources/background.js
copy to native_client_sdk/src/examples/demo/drive/background.js
index 1fc5a19b3ac8722945ca5283e58162ac9ccaa4d3..ea796ccfcf9a586f2e57cc048f3107c6a810b8db 100644
--- a/native_client_sdk/src/examples/resources/background.js
+++ b/native_client_sdk/src/examples/demo/drive/background.js
@@ -2,12 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-function onLaunched(launchData) {
+"use strict";
+
+chrome.app.runtime.onLaunched.addListener(function () {
chrome.app.window.create('index.html', {
- width: 1024,
- height: 800,
- frame: 'none'
+ 'bounds': {'width': 800, 'height': 600}
});
-}
-
-chrome.app.runtime.onLaunched.addListener(onLaunched);
+});

Powered by Google App Engine
This is Rietveld 408576698