| Index: chrome/test/data/extensions/api_test/action_handlers/new_note/main.js
|
| diff --git a/chrome/test/data/extensions/api_test/action_handlers/new_note/main.js b/chrome/test/data/extensions/api_test/action_handlers/new_note/main.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7af0a9095a9ed8362164753aa014ee645ea23452
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/api_test/action_handlers/new_note/main.js
|
| @@ -0,0 +1,13 @@
|
| +// Copyright 2017 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(launchData) {
|
| + var isNewNote = false;
|
| + if (launchData.actionData && launchData.actionData.actionType == "new_note")
|
| + isNewNote = true
|
| +
|
| + chrome.test.sendMessage('hasNewNote = ' + isNewNote);
|
| +});
|
| +
|
| +chrome.test.sendMessage('loaded');
|
|
|