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" | |
10 #include "base/bind.h" | 9 #include "base/bind.h" |
11 #include "base/command_line.h" | 10 #include "base/command_line.h" |
12 #include "base/feature_list.h" | 11 #include "base/feature_list.h" |
13 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
14 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
15 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
16 #include "base/location.h" | 15 #include "base/location.h" |
| 16 #include "base/macros.h" |
17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
18 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
19 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
20 #include "base/test/test_file_util.h" | 20 #include "base/test/test_file_util.h" |
21 #include "base/thread_task_runner_handle.h" | 21 #include "base/thread_task_runner_handle.h" |
22 #include "base/threading/non_thread_safe.h" | 22 #include "base/threading/non_thread_safe.h" |
| 23 #include "build/build_config.h" |
23 #include "chrome/browser/after_startup_task_utils.h" | 24 #include "chrome/browser/after_startup_task_utils.h" |
24 #include "chrome/browser/browser_process.h" | 25 #include "chrome/browser/browser_process.h" |
25 #include "chrome/browser/chrome_notification_types.h" | 26 #include "chrome/browser/chrome_notification_types.h" |
26 #include "chrome/browser/devtools/devtools_window.h" | 27 #include "chrome/browser/devtools/devtools_window.h" |
27 #include "chrome/browser/lifetime/application_lifetime.h" | 28 #include "chrome/browser/lifetime/application_lifetime.h" |
28 #include "chrome/browser/net/net_error_tab_helper.h" | 29 #include "chrome/browser/net/net_error_tab_helper.h" |
29 #include "chrome/browser/profiles/profile.h" | 30 #include "chrome/browser/profiles/profile.h" |
30 #include "chrome/browser/profiles/profile_manager.h" | 31 #include "chrome/browser/profiles/profile_manager.h" |
31 #include "chrome/browser/ui/browser.h" | 32 #include "chrome/browser/ui/browser.h" |
32 #include "chrome/browser/ui/browser_commands.h" | 33 #include "chrome/browser/ui/browser_commands.h" |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 // On the Mac, this eventually reaches | 657 // On the Mac, this eventually reaches |
657 // -[BrowserWindowController windowWillClose:], which will post a deferred | 658 // -[BrowserWindowController windowWillClose:], which will post a deferred |
658 // -autorelease on itself to ultimately destroy the Browser object. The line | 659 // -autorelease on itself to ultimately destroy the Browser object. The line |
659 // below is necessary to pump these pending messages to ensure all Browsers | 660 // below is necessary to pump these pending messages to ensure all Browsers |
660 // get deleted. | 661 // get deleted. |
661 content::RunAllPendingInMessageLoop(); | 662 content::RunAllPendingInMessageLoop(); |
662 delete autorelease_pool_; | 663 delete autorelease_pool_; |
663 autorelease_pool_ = NULL; | 664 autorelease_pool_ = NULL; |
664 #endif | 665 #endif |
665 } | 666 } |
OLD | NEW |