OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <stddef.h> |
| 6 |
5 #include "base/bind.h" | 7 #include "base/bind.h" |
6 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
7 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
8 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
9 #include "base/location.h" | 11 #include "base/location.h" |
10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
12 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
13 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
14 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
15 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
16 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
17 #include "base/synchronization/waitable_event.h" | 19 #include "base/synchronization/waitable_event.h" |
18 #include "base/time/time.h" | 20 #include "base/time/time.h" |
| 21 #include "build/build_config.h" |
19 #include "chrome/browser/browser_process.h" | 22 #include "chrome/browser/browser_process.h" |
20 #include "chrome/browser/chrome_notification_types.h" | 23 #include "chrome/browser/chrome_notification_types.h" |
21 #include "chrome/browser/defaults.h" | 24 #include "chrome/browser/defaults.h" |
22 #include "chrome/browser/profiles/profile_manager.h" | 25 #include "chrome/browser/profiles/profile_manager.h" |
23 #include "chrome/browser/sessions/session_service.h" | 26 #include "chrome/browser/sessions/session_service.h" |
24 #include "chrome/browser/sessions/session_service_test_helper.h" | 27 #include "chrome/browser/sessions/session_service_test_helper.h" |
25 #include "chrome/common/chrome_paths.h" | 28 #include "chrome/common/chrome_paths.h" |
26 #include "chrome/common/url_constants.h" | 29 #include "chrome/common/url_constants.h" |
27 #include "chrome/test/base/browser_with_test_window_test.h" | 30 #include "chrome/test/base/browser_with_test_window_test.h" |
28 #include "chrome/test/base/testing_browser_process.h" | 31 #include "chrome/test/base/testing_browser_process.h" |
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1034 &cancelable_task_tracker); | 1037 &cancelable_task_tracker); |
1035 helper_.RunTaskOnBackendThread( | 1038 helper_.RunTaskOnBackendThread( |
1036 FROM_HERE, | 1039 FROM_HERE, |
1037 base::Bind(&PostBackToThread, | 1040 base::Bind(&PostBackToThread, |
1038 base::Unretained(base::MessageLoop::current()), | 1041 base::Unretained(base::MessageLoop::current()), |
1039 base::Unretained(&run_loop))); | 1042 base::Unretained(&run_loop))); |
1040 delete helper_.ReleaseService(); | 1043 delete helper_.ReleaseService(); |
1041 event.Signal(); | 1044 event.Signal(); |
1042 run_loop.Run(); | 1045 run_loop.Run(); |
1043 } | 1046 } |
OLD | NEW |