Index: chrome/browser/extensions/api/app_window/app_window_api.cc |
diff --git a/chrome/browser/extensions/api/app_window/app_window_api.cc b/chrome/browser/extensions/api/app_window/app_window_api.cc |
index 32d83de92dd73bdffe183a5b71bcb463a9e0cf9e..c57ba20a5d7399328bf8c5bb29ae4802f8f486df 100644 |
--- a/chrome/browser/extensions/api/app_window/app_window_api.cc |
+++ b/chrome/browser/extensions/api/app_window/app_window_api.cc |
@@ -33,6 +33,7 @@ const char kInvalidWindowId[] = |
"The window id can not be more than 256 characters long."; |
} |
+const char kPanelTypeOption[] = "panel"; |
const char kNoneFrameOption[] = "none"; |
const char kHtmlFrameOption[] = "experimental-html"; |
@@ -150,6 +151,11 @@ bool AppWindowCreateFunction::RunImpl() { |
create_params.bounds.set_y(*bounds->top.get()); |
} |
+ if (options->type.get()) { |
+ if (*options->type == kPanelTypeOption) |
+ create_params.window_type = ShellWindow::WINDOW_TYPE_PANEL; |
+ } |
+ |
if (options->frame.get()) { |
if (*options->frame == kHtmlFrameOption && |
CommandLine::ForCurrentProcess()->HasSwitch( |