| Index: chrome/common/extensions/docs/examples/apps/calculator/app/controller.js
|
| diff --git a/chrome/common/extensions/docs/examples/apps/calculator/app/controller.js b/chrome/common/extensions/docs/examples/apps/calculator/app/controller.js
|
| index 05745bd6ebf1f534b6a14e383b609768e389b841..18a13e975fd0ecae26c8b55346ac1c8c6e5605ed 100644
|
| --- a/chrome/common/extensions/docs/examples/apps/calculator/app/controller.js
|
| +++ b/chrome/common/extensions/docs/examples/apps/calculator/app/controller.js
|
| @@ -12,12 +12,8 @@
|
| // Checking for "chrome.app.runtime" availability allows testing in a regular
|
| // web page (like tests/manual.html).
|
| if (typeof chrome !== 'undefined' && chrome.app && chrome.app.runtime) {
|
| - // Compatibility for running under app_shell, which does not have app.window.
|
| - var createWindow =
|
| - chrome.shell ? chrome.shell.createWindow : chrome.app.window.create;
|
| -
|
| var showCalculatorWindow = function () {
|
| - createWindow('calculator.html', {
|
| + chrome.app.window.create('calculator.html', {
|
| innerBounds: {
|
| width: 243, minWidth: 243, maxWidth: 243,
|
| height: 380, minHeight: 380, maxHeight: 380
|
|
|