| Index: chrome/test/data/extensions/platform_apps/context_menu/test.js
|
| diff --git a/chrome/test/data/extensions/platform_apps/context_menu/test.js b/chrome/test/data/extensions/platform_apps/context_menu/test.js
|
| index 09af18a9b224336a18251540774f2f12ee780ecb..384c482994b524a1e183fa67c290dce785c68920 100644
|
| --- a/chrome/test/data/extensions/platform_apps/context_menu/test.js
|
| +++ b/chrome/test/data/extensions/platform_apps/context_menu/test.js
|
| @@ -1,15 +1,16 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 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.
|
|
|
| -function onclick(info) {
|
| -}
|
| -
|
| -window.onload = function() {
|
| - chrome.contextMenus.create({"title":"Extension Item 1",
|
| - "onclick": onclick}, function() {
|
| - if (!chrome.extension.lastError) {
|
| - chrome.test.sendMessage("created item");
|
| - }
|
| - });
|
| -};
|
| +chrome.experimental.runtime.onLaunched.addListener(function() {
|
| + chrome.contextMenus.create({
|
| + title: 'Extension Item 1',
|
| + onclick: function() {}
|
| + },
|
| + function() {
|
| + chrome.windows.create({
|
| + url: 'main.html',
|
| + type: 'shell'
|
| + });
|
| + });
|
| +});
|
|
|