OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "apps/app_restore_service.h" | 5 #include "apps/app_restore_service.h" |
6 #include "apps/app_restore_service_factory.h" | 6 #include "apps/app_restore_service_factory.h" |
7 #include "apps/saved_files_service.h" | 7 #include "apps/saved_files_service.h" |
8 #include "base/threading/thread_restrictions.h" | 8 #include "base/threading/thread_restrictions.h" |
9 #include "chrome/browser/apps/app_browsertest_util.h" | 9 #include "chrome/browser/apps/app_browsertest_util.h" |
10 #include "chrome/browser/extensions/api/file_system/file_system_api.h" | |
11 #include "content/public/browser/browser_context.h" | 10 #include "content/public/browser/browser_context.h" |
12 #include "content/public/browser/notification_service.h" | 11 #include "content/public/browser/notification_service.h" |
13 #include "content/public/test/test_utils.h" | 12 #include "content/public/test/test_utils.h" |
| 13 #include "extensions/browser/api/file_system/file_system_api.h" |
14 #include "extensions/browser/api/file_system/saved_file_entry.h" | 14 #include "extensions/browser/api/file_system/saved_file_entry.h" |
15 #include "extensions/browser/extension_prefs.h" | 15 #include "extensions/browser/extension_prefs.h" |
16 #include "extensions/browser/notification_types.h" | 16 #include "extensions/browser/notification_types.h" |
17 #include "extensions/common/extension.h" | 17 #include "extensions/common/extension.h" |
18 #include "extensions/test/extension_test_message_listener.h" | 18 #include "extensions/test/extension_test_message_listener.h" |
19 | 19 |
20 using extensions::Extension; | 20 using extensions::Extension; |
21 using extensions::ExtensionPrefs; | 21 using extensions::ExtensionPrefs; |
22 using extensions::ExtensionSystem; | 22 using extensions::ExtensionSystem; |
23 using extensions::FileSystemChooseEntryFunction; | 23 using extensions::FileSystemChooseEntryFunction; |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 extension->id(), it->id, it->path, it->is_directory); | 193 extension->id(), it->id, it->path, it->is_directory); |
194 } | 194 } |
195 | 195 |
196 apps::AppRestoreServiceFactory::GetForBrowserContext(browser()->profile()) | 196 apps::AppRestoreServiceFactory::GetForBrowserContext(browser()->profile()) |
197 ->HandleStartup(true); | 197 ->HandleStartup(true); |
198 | 198 |
199 access_ok_listener.WaitUntilSatisfied(); | 199 access_ok_listener.WaitUntilSatisfied(); |
200 } | 200 } |
201 | 201 |
202 } // namespace apps | 202 } // namespace apps |
OLD | NEW |