| 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 #include "chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h" | 5 #include "chrome/browser/apps/app_shim/extension_app_shim_handler_mac.h" |
| 6 | 6 |
| 7 #include "apps/app_lifetime_monitor_factory.h" | 7 #include "apps/app_lifetime_monitor_factory.h" |
| 8 #include "apps/launcher.h" | 8 #include "apps/launcher.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" |
| 11 #include "chrome/browser/apps/app_shim/app_shim_host_manager_mac.h" | 12 #include "chrome/browser/apps/app_shim/app_shim_host_manager_mac.h" |
| 12 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
| 13 #include "chrome/browser/chrome_notification_types.h" | 14 #include "chrome/browser/chrome_notification_types.h" |
| 14 #include "chrome/browser/extensions/launch_util.h" | 15 #include "chrome/browser/extensions/launch_util.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 16 #include "chrome/browser/profiles/profile_manager.h" | 17 #include "chrome/browser/profiles/profile_manager.h" |
| 17 #include "chrome/browser/profiles/profile_window.h" | 18 #include "chrome/browser/profiles/profile_window.h" |
| 18 #include "chrome/browser/profiles/profiles_state.h" | 19 #include "chrome/browser/profiles/profiles_state.h" |
| 19 #include "chrome/browser/ui/browser_list.h" | 20 #include "chrome/browser/ui/browser_list.h" |
| 20 #include "chrome/browser/ui/browser_window.h" | 21 #include "chrome/browser/ui/browser_window.h" |
| (...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 749 AppBrowserMap::iterator it = app_browser_windows_.find(extension->id()); | 750 AppBrowserMap::iterator it = app_browser_windows_.find(extension->id()); |
| 750 if (it != app_browser_windows_.end()) { | 751 if (it != app_browser_windows_.end()) { |
| 751 BrowserSet& browsers = it->second; | 752 BrowserSet& browsers = it->second; |
| 752 browsers.erase(browser); | 753 browsers.erase(browser); |
| 753 if (browsers.empty()) | 754 if (browsers.empty()) |
| 754 OnAppDeactivated(browser->profile(), extension->id()); | 755 OnAppDeactivated(browser->profile(), extension->id()); |
| 755 } | 756 } |
| 756 } | 757 } |
| 757 | 758 |
| 758 } // namespace apps | 759 } // namespace apps |
| OLD | NEW |