| Index: chrome/browser/ui/app_list/app_list_controller_delegate.cc
|
| diff --git a/chrome/browser/ui/app_list/app_list_controller_delegate.cc b/chrome/browser/ui/app_list/app_list_controller_delegate.cc
|
| index 18daa5a7deaed9896711c70e3cff109fbf09c2f2..1c73cd1a630bd71937b4fc154e7d96afccb250b8 100644
|
| --- a/chrome/browser/ui/app_list/app_list_controller_delegate.cc
|
| +++ b/chrome/browser/ui/app_list/app_list_controller_delegate.cc
|
| @@ -99,9 +99,24 @@ void AppListControllerDelegate::DoShowAppInfoFlow(
|
| if (!parent_window)
|
| return;
|
|
|
| + // The dialog is inset so the app list is still visible around the edges.
|
| + unsigned int kAppListDialogHorizontalBorderInsets = 10;
|
| + unsigned int kAppListDialogVerticalBorderInsets = 10;
|
| +
|
| + // If we are using the experimental app list, inset the dialog further so it
|
| + // appears as a vertical column in the center of the app list.
|
| + if (app_list::switches::IsExperimentalAppListEnabled()) {
|
| + kAppListDialogHorizontalBorderInsets += 100;
|
| + }
|
| +
|
| + gfx::Rect dialog_bounds = GetAppListBounds();
|
| + dialog_bounds.Inset(kAppListDialogHorizontalBorderInsets,
|
| + kAppListDialogVerticalBorderInsets);
|
| +
|
| OnShowExtensionPrompt();
|
| ShowAppInfoDialog(
|
| parent_window,
|
| + dialog_bounds,
|
| profile,
|
| extension,
|
| base::Bind(&AppListControllerDelegate::OnCloseExtensionPrompt,
|
|
|