OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "chrome/browser/extensions/external_provider_impl.h" | 5 #include "chrome/browser/extensions/external_provider_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/test/scoped_path_override.h" | 9 #include "base/test/scoped_path_override.h" |
10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
11 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 11 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
12 #include "chrome/browser/chromeos/customization/customization_document.h" | 12 #include "chrome/browser/chromeos/customization/customization_document.h" |
13 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" | 13 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
14 #include "chrome/browser/extensions/extension_service.h" | 14 #include "chrome/browser/extensions/extension_service.h" |
15 #include "chrome/browser/extensions/extension_service_test_base.h" | 15 #include "chrome/browser/extensions/extension_service_test_base.h" |
16 #include "chrome/browser/prefs/pref_service_syncable_util.h" | 16 #include "chrome/browser/prefs/pref_service_syncable_util.h" |
17 #include "chrome/browser/profiles/profile_manager.h" | 17 #include "chrome/browser/profiles/profile_manager.h" |
18 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 18 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
19 #include "chrome/browser/signin/signin_manager_factory.h" | 19 #include "chrome/browser/signin/signin_manager_factory.h" |
20 #include "chrome/browser/sync/profile_sync_service.h" | |
21 #include "chrome/browser/sync/profile_sync_service_factory.h" | 20 #include "chrome/browser/sync/profile_sync_service_factory.h" |
22 #include "chrome/common/chrome_paths.h" | 21 #include "chrome/common/chrome_paths.h" |
23 #include "chrome/common/chrome_switches.h" | 22 #include "chrome/common/chrome_switches.h" |
24 #include "chrome/test/base/testing_browser_process.h" | 23 #include "chrome/test/base/testing_browser_process.h" |
25 #include "chrome/test/base/testing_profile.h" | 24 #include "chrome/test/base/testing_profile.h" |
26 #include "chromeos/system/fake_statistics_provider.h" | 25 #include "chromeos/system/fake_statistics_provider.h" |
27 #include "chromeos/system/statistics_provider.h" | 26 #include "chromeos/system/statistics_provider.h" |
| 27 #include "components/browser_sync/browser/profile_sync_service.h" |
28 #include "components/browser_sync/common/browser_sync_switches.h" | 28 #include "components/browser_sync/common/browser_sync_switches.h" |
29 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 29 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
30 #include "components/signin/core/browser/signin_manager_base.h" | 30 #include "components/signin/core/browser/signin_manager_base.h" |
31 #include "components/sync_driver/pref_names.h" | 31 #include "components/sync_driver/pref_names.h" |
32 #include "components/syncable_prefs/pref_service_syncable.h" | 32 #include "components/syncable_prefs/pref_service_syncable.h" |
33 #include "components/user_manager/fake_user_manager.h" | 33 #include "components/user_manager/fake_user_manager.h" |
34 #include "content/public/browser/notification_service.h" | 34 #include "content/public/browser/notification_service.h" |
35 #include "content/public/test/test_utils.h" | 35 #include "content/public/test/test_utils.h" |
36 #include "sync/api/fake_sync_change_processor.h" | 36 #include "sync/api/fake_sync_change_processor.h" |
37 #include "sync/api/sync_change_processor.h" | 37 #include "sync/api/sync_change_processor.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 new syncer::SyncErrorFactoryMock())); | 204 new syncer::SyncErrorFactoryMock())); |
205 | 205 |
206 content::WindowedNotificationObserver( | 206 content::WindowedNotificationObserver( |
207 extensions::NOTIFICATION_CRX_INSTALLER_DONE, | 207 extensions::NOTIFICATION_CRX_INSTALLER_DONE, |
208 content::NotificationService::AllSources()).Wait(); | 208 content::NotificationService::AllSources()).Wait(); |
209 | 209 |
210 EXPECT_TRUE(service_->GetInstalledExtension(kStandaloneAppId)); | 210 EXPECT_TRUE(service_->GetInstalledExtension(kStandaloneAppId)); |
211 } | 211 } |
212 | 212 |
213 } // namespace extensions | 213 } // namespace extensions |
OLD | NEW |