| Index: chrome/browser/ui/app_list/app_list_service_mac.mm
|
| diff --git a/chrome/browser/ui/app_list/app_list_service_mac.mm b/chrome/browser/ui/app_list/app_list_service_mac.mm
|
| index 8e448e8cde0a1c4c728ce16299c30b7bcee3fd59..c7a97570932d39e3a43758b4aeccc43e041a87e8 100644
|
| --- a/chrome/browser/ui/app_list/app_list_service_mac.mm
|
| +++ b/chrome/browser/ui/app_list/app_list_service_mac.mm
|
| @@ -452,6 +452,17 @@ void AppListServiceMac::CreateShortcut() {
|
| g_browser_process->profile_manager()->user_data_dir()));
|
| }
|
|
|
| +void AppListServiceMac::DestroyAppList() {
|
| + // Due to reference counting, Mac can't guarantee that the widget is deleted,
|
| + // but mac supports a visible app list with a NULL profile, so there's also no
|
| + // need to tear it down completely.
|
| + DismissAppList();
|
| + [[window_controller_ appListViewController]
|
| + setDelegate:scoped_ptr<app_list::AppListViewDelegate>()];
|
| +
|
| + profile_ = NULL;
|
| +}
|
| +
|
| NSWindow* AppListServiceMac::GetAppListWindow() {
|
| return [window_controller_ window];
|
| }
|
|
|