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 #include "chrome/test/base/in_process_browser_test.h" | 5 #include "chrome/test/base/in_process_browser_test.h" |
6 | 6 |
7 #include "ash/ash_switches.h" | 7 #include "ash/ash_switches.h" |
8 #include "base/auto_reset.h" | 8 #include "base/auto_reset.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "chrome/browser/lifetime/application_lifetime.h" | 26 #include "chrome/browser/lifetime/application_lifetime.h" |
27 #include "chrome/browser/net/net_error_tab_helper.h" | 27 #include "chrome/browser/net/net_error_tab_helper.h" |
28 #include "chrome/browser/profiles/profile.h" | 28 #include "chrome/browser/profiles/profile.h" |
29 #include "chrome/browser/profiles/profile_manager.h" | 29 #include "chrome/browser/profiles/profile_manager.h" |
30 #include "chrome/browser/ui/browser.h" | 30 #include "chrome/browser/ui/browser.h" |
31 #include "chrome/browser/ui/browser_commands.h" | 31 #include "chrome/browser/ui/browser_commands.h" |
32 #include "chrome/browser/ui/browser_finder.h" | 32 #include "chrome/browser/ui/browser_finder.h" |
33 #include "chrome/browser/ui/browser_list.h" | 33 #include "chrome/browser/ui/browser_list.h" |
34 #include "chrome/browser/ui/browser_list_observer.h" | 34 #include "chrome/browser/ui/browser_list_observer.h" |
35 #include "chrome/browser/ui/browser_navigator.h" | 35 #include "chrome/browser/ui/browser_navigator.h" |
| 36 #include "chrome/browser/ui/browser_navigator_params.h" |
36 #include "chrome/browser/ui/browser_tabstrip.h" | 37 #include "chrome/browser/ui/browser_tabstrip.h" |
37 #include "chrome/browser/ui/browser_window.h" | 38 #include "chrome/browser/ui/browser_window.h" |
38 #include "chrome/browser/ui/host_desktop.h" | 39 #include "chrome/browser/ui/host_desktop.h" |
39 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 40 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
40 #include "chrome/common/chrome_constants.h" | 41 #include "chrome/common/chrome_constants.h" |
41 #include "chrome/common/chrome_paths.h" | 42 #include "chrome/common/chrome_paths.h" |
42 #include "chrome/common/chrome_switches.h" | 43 #include "chrome/common/chrome_switches.h" |
43 #include "chrome/common/logging_chrome.h" | 44 #include "chrome/common/logging_chrome.h" |
44 #include "chrome/common/url_constants.h" | 45 #include "chrome/common/url_constants.h" |
45 #include "chrome/renderer/chrome_content_renderer_client.h" | 46 #include "chrome/renderer/chrome_content_renderer_client.h" |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 // On the Mac, this eventually reaches | 658 // On the Mac, this eventually reaches |
658 // -[BrowserWindowController windowWillClose:], which will post a deferred | 659 // -[BrowserWindowController windowWillClose:], which will post a deferred |
659 // -autorelease on itself to ultimately destroy the Browser object. The line | 660 // -autorelease on itself to ultimately destroy the Browser object. The line |
660 // below is necessary to pump these pending messages to ensure all Browsers | 661 // below is necessary to pump these pending messages to ensure all Browsers |
661 // get deleted. | 662 // get deleted. |
662 content::RunAllPendingInMessageLoop(); | 663 content::RunAllPendingInMessageLoop(); |
663 delete autorelease_pool_; | 664 delete autorelease_pool_; |
664 autorelease_pool_ = NULL; | 665 autorelease_pool_ = NULL; |
665 #endif | 666 #endif |
666 } | 667 } |
OLD | NEW |