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 c174a07b22fed69a06a292b48076d184beff0ac0..0169d7590b9ca107535db8eac8149ad412c8d86f 100644 |
--- a/chrome/browser/ui/app_list/app_list_controller_delegate.cc |
+++ b/chrome/browser/ui/app_list/app_list_controller_delegate.cc |
@@ -101,27 +101,11 @@ void AppListControllerDelegate::DoShowAppInfoFlow( |
extension_id); |
DCHECK(extension); |
- gfx::NativeWindow parent_window = GetAppListWindow(); |
- if (!parent_window) |
- return; |
- |
- // For the centered app list, inset the dialog further so it appears as a |
- // vertical column in the center of the app list. |
- const int kAppListDialogHorizontalBorderInsets = |
- app_list::switches::IsCenteredAppListEnabled() ? 110 : 10; |
- const int kAppListDialogVerticalBorderInsets = 10; |
- |
- gfx::Rect dialog_bounds = GetAppListBounds(); |
- dialog_bounds.Inset(kAppListDialogHorizontalBorderInsets, |
- kAppListDialogVerticalBorderInsets); |
- |
OnShowChildDialog(); |
- ShowAppInfoDialog(parent_window, |
- dialog_bounds, |
- profile, |
- extension, |
- base::Bind(&AppListControllerDelegate::OnCloseChildDialog, |
- base::Unretained(this))); |
+ |
+ // Since the AppListControllerDelegate is a leaky singleton, passing its |
+ // raw pointer around is OK. |
+ ShowAppInfoDialog(this, profile, extension); |
} |
void AppListControllerDelegate::UninstallApp(Profile* profile, |