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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/bind_helpers.h" | 6 #include "base/bind_helpers.h" |
7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
11 #include "base/path_service.h" | |
12 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
13 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
14 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
16 #include "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
17 #include "base/time/time.h" | 16 #include "base/time/time.h" |
18 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
19 #include "chrome/browser/chrome_notification_types.h" | 18 #include "chrome/browser/chrome_notification_types.h" |
20 #include "chrome/browser/defaults.h" | 19 #include "chrome/browser/defaults.h" |
21 #include "chrome/browser/profiles/profile_manager.h" | 20 #include "chrome/browser/profiles/profile_manager.h" |
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1017 &cancelable_task_tracker); | 1016 &cancelable_task_tracker); |
1018 helper_.RunTaskOnBackendThread( | 1017 helper_.RunTaskOnBackendThread( |
1019 FROM_HERE, | 1018 FROM_HERE, |
1020 base::Bind(&PostBackToThread, | 1019 base::Bind(&PostBackToThread, |
1021 base::Unretained(base::MessageLoop::current()), | 1020 base::Unretained(base::MessageLoop::current()), |
1022 base::Unretained(&run_loop))); | 1021 base::Unretained(&run_loop))); |
1023 delete helper_.ReleaseService(); | 1022 delete helper_.ReleaseService(); |
1024 event.Signal(); | 1023 event.Signal(); |
1025 run_loop.Run(); | 1024 run_loop.Run(); |
1026 } | 1025 } |
OLD | NEW |