diff options
author | tapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-15 05:48:10 +0000 |
---|---|---|
committer | tapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-15 05:48:10 +0000 |
commit | b0ff83de884fa15d019a05faf9a8b987681d51c1 (patch) | |
tree | e9d08628fb5a6b92f52cd9f8caa6475d25ae4e2d /chrome/browser/resources/settings_app/settings_app.js | |
parent | 28c3eebe677cff11d6945db175771e5e93b2ee03 (diff) | |
download | chromium_src-b0ff83de884fa15d019a05faf9a8b987681d51c1.zip chromium_src-b0ff83de884fa15d019a05faf9a8b987681d51c1.tar.gz chromium_src-b0ff83de884fa15d019a05faf9a8b987681d51c1.tar.bz2 |
Allow settings dialog to be opened via the app launcher, as a packaged app.
This first stage fixes peculiar behaviour when running a launched ShellWindow
in a process separate from the background page (e.g. sandboxed pages, and the
new settings app, which will use a process running WebUI), as well as
installing the app itself; loading the vanillla chrome://settings pages.
Next part: theming and pages for the app-host settings UI.
BUG=130210
Review URL: https://chromiumcodereview.appspot.com/11048045
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161828 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/settings_app/settings_app.js')
-rw-r--r-- | chrome/browser/resources/settings_app/settings_app.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/resources/settings_app/settings_app.js b/chrome/browser/resources/settings_app/settings_app.js new file mode 100644 index 0000000..3385c80 --- /dev/null +++ b/chrome/browser/resources/settings_app/settings_app.js @@ -0,0 +1,10 @@ +// Copyright 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +chrome.app.runtime.onLaunched.addListener(function() { + chrome.app.window.create('chrome://settings-frame/settings', { + 'height': 550, + 'width': 640, + }); +}); |