OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #import "chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac.h" | 5 #import "chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "apps/app_window_registry.h" | 9 #include "apps/app_window_registry.h" |
10 #include "apps/ui/native_app_window.h" | 10 #include "apps/ui/native_app_window.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 chrome::BrowserIterator()->window()->Close(); | 140 chrome::BrowserIterator()->window()->Close(); |
141 | 141 |
142 apps::AppWindow* app_1_app_window = apps::AppWindowRegistry::Get(profile()) | 142 apps::AppWindow* app_1_app_window = apps::AppWindowRegistry::Get(profile()) |
143 ->GetAppWindowsForApp(app_1_->id()) | 143 ->GetAppWindowsForApp(app_1_->id()) |
144 .front(); | 144 .front(); |
145 [[NSNotificationCenter defaultCenter] | 145 [[NSNotificationCenter defaultCenter] |
146 postNotificationName:NSWindowDidBecomeMainNotification | 146 postNotificationName:NSWindowDidBecomeMainNotification |
147 object:app_1_app_window->GetNativeWindow()]; | 147 object:app_1_app_window->GetNativeWindow()]; |
148 | 148 |
149 CheckHasAppMenus(app_1_); | 149 CheckHasAppMenus(app_1_); |
150 ExtensionService::UninstallExtensionHelper(extension_service(), app_1_->id()); | 150 ExtensionService::UninstallExtensionHelper( |
| 151 extension_service(), |
| 152 app_1_->id(), |
| 153 ExtensionService::UNINSTALL_REASON_FOR_TESTING); |
151 CheckNoAppMenus(); | 154 CheckNoAppMenus(); |
152 } | 155 } |
153 | 156 |
154 } // namespace | 157 } // namespace |
OLD | NEW |