| 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/shell_window_registry.h" | 9 #include "apps/shell_window_registry.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/mac/scoped_nsobject.h" | 11 #include "base/mac/scoped_nsobject.h" |
| 12 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
| 13 #include "chrome/browser/apps/app_browsertest_util.h" | 13 #include "chrome/browser/apps/app_browsertest_util.h" |
| 14 #include "chrome/browser/extensions/extension_service.h" | 14 #include "chrome/browser/extensions/extension_service.h" |
| 15 #include "chrome/browser/extensions/extension_test_message_listener.h" | 15 #include "chrome/browser/extensions/extension_test_message_listener.h" |
| 16 #include "chrome/browser/profiles/profile.h" |
| 16 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
| 17 #include "chrome/common/extensions/extension.h" | 18 #include "chrome/common/extensions/extension.h" |
| 18 | 19 |
| 19 namespace { | 20 namespace { |
| 20 | 21 |
| 21 class AppShimMenuControllerBrowserTest | 22 class AppShimMenuControllerBrowserTest |
| 22 : public extensions::PlatformAppBrowserTest { | 23 : public extensions::PlatformAppBrowserTest { |
| 23 protected: | 24 protected: |
| 24 AppShimMenuControllerBrowserTest() | 25 AppShimMenuControllerBrowserTest() |
| 25 : app_1_(NULL), | 26 : app_1_(NULL), |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 [[NSNotificationCenter defaultCenter] | 132 [[NSNotificationCenter defaultCenter] |
| 132 postNotificationName:NSWindowDidBecomeMainNotification | 133 postNotificationName:NSWindowDidBecomeMainNotification |
| 133 object:app_1_shell_window->GetNativeWindow()]; | 134 object:app_1_shell_window->GetNativeWindow()]; |
| 134 | 135 |
| 135 CheckHasAppMenus(app_1_); | 136 CheckHasAppMenus(app_1_); |
| 136 ExtensionService::UninstallExtensionHelper(extension_service(), app_1_->id()); | 137 ExtensionService::UninstallExtensionHelper(extension_service(), app_1_->id()); |
| 137 CheckNoAppMenus(); | 138 CheckNoAppMenus(); |
| 138 } | 139 } |
| 139 | 140 |
| 140 } // namespace | 141 } // namespace |
| OLD | NEW |