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

Unified Diff: chrome/test/data/extensions/platform_apps/windows_api_ime/has_permissions_whitelisted/background.js

Issue 1516253002: Whitelist IME extenions for app.window with type:panel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « chrome/browser/ui/panels/panel_manager.cc ('k') | extensions/browser/api/app_window/app_window_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/platform_apps/windows_api_ime/has_permissions_whitelisted/background.js
diff --git a/chrome/test/data/extensions/platform_apps/windows_api_ime/has_permissions_whitelisted/background.js b/chrome/test/data/extensions/platform_apps/windows_api_ime/has_permissions_whitelisted/background.js
index 6aaf9170904e9c0bdbc7e7bb5d450ccc67b3215f..051956660d32a89e44a7279becf5f6fdb47a552d 100644
--- a/chrome/test/data/extensions/platform_apps/windows_api_ime/has_permissions_whitelisted/background.js
+++ b/chrome/test/data/extensions/platform_apps/windows_api_ime/has_permissions_whitelisted/background.js
@@ -2,14 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-var error = "IME extensions must create window with \"ime: true\" and " +
-"\"frame: 'none'\".";
+var error = "IME extensions must create ime window ( with \"ime: true\" and " +
+ "\"frame: 'none'\") or panel window (with \"type: panel\").";
function testImeEnabled(createOptions) {
if (createOptions.frame == 'none' && createOptions.ime) {
chrome.app.window.create('index.html',
createOptions,
chrome.test.callbackPass(function(win) {}));
+ } else if (createOptions.type == 'type'){
+ chrome.app.window.create('index.html',
+ createOptions,
+ chrome.test.callbackPass(function(win) {}));
} else {
chrome.app.window.create('index.html',
createOptions,
« no previous file with comments | « chrome/browser/ui/panels/panel_manager.cc ('k') | extensions/browser/api/app_window/app_window_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698