| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chrome_browser_application_mac.h" | 5 #import "chrome/browser/chrome_browser_application_mac.h" |
| 6 | 6 |
| 7 #include <objc/objc-exception.h> | 7 #include <objc/objc-exception.h> |
| 8 | 8 |
| 9 #import "base/auto_reset.h" | 9 #import "base/auto_reset.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/debug/crash_logging.h" | 11 #include "base/debug/crash_logging.h" |
| 12 #include "base/debug/stack_trace.h" | 12 #include "base/debug/stack_trace.h" |
| 13 #import "base/logging.h" | 13 #import "base/logging.h" |
| 14 #include "base/mac/call_with_eh_frame.h" | 14 #include "base/mac/call_with_eh_frame.h" |
| 15 #import "base/mac/scoped_nsobject.h" | 15 #import "base/mac/scoped_nsobject.h" |
| 16 #import "base/mac/scoped_objc_class_swizzler.h" | 16 #import "base/mac/scoped_objc_class_swizzler.h" |
| 17 #include "base/macros.h" |
| 17 #import "base/metrics/histogram.h" | 18 #import "base/metrics/histogram.h" |
| 18 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
| 19 #import "base/strings/sys_string_conversions.h" | 20 #import "base/strings/sys_string_conversions.h" |
| 20 #import "chrome/browser/app_controller_mac.h" | 21 #import "chrome/browser/app_controller_mac.h" |
| 21 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h" | 22 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h" |
| 22 #include "chrome/common/chrome_switches.h" | 23 #include "chrome/common/chrome_switches.h" |
| 23 #include "chrome/common/crash_keys.h" | 24 #include "chrome/common/crash_keys.h" |
| 24 #import "components/crash/core/common/objc_zombie.h" | 25 #import "components/crash/core/common/objc_zombie.h" |
| 25 #include "content/public/browser/browser_accessibility_state.h" | 26 #include "content/public/browser/browser_accessibility_state.h" |
| 26 #include "content/public/browser/render_view_host.h" | 27 #include "content/public/browser/render_view_host.h" |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 std::vector<NSWindow*>::iterator window_iterator = | 412 std::vector<NSWindow*>::iterator window_iterator = |
| 412 std::find(previousKeyWindows_.begin(), | 413 std::find(previousKeyWindows_.begin(), |
| 413 previousKeyWindows_.end(), | 414 previousKeyWindows_.end(), |
| 414 window); | 415 window); |
| 415 if (window_iterator != previousKeyWindows_.end()) { | 416 if (window_iterator != previousKeyWindows_.end()) { |
| 416 previousKeyWindows_.erase(window_iterator); | 417 previousKeyWindows_.erase(window_iterator); |
| 417 } | 418 } |
| 418 } | 419 } |
| 419 | 420 |
| 420 @end | 421 @end |
| OLD | NEW |