| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 12 #include "base/test/scoped_path_override.h" | 13 #include "base/test/scoped_path_override.h" |
| 14 #include "build/build_config.h" |
| 13 #include "chrome/browser/extensions/test_extension_system.h" | 15 #include "chrome/browser/extensions/test_extension_system.h" |
| 14 #include "chrome/browser/media_galleries/gallery_watch_manager.h" | 16 #include "chrome/browser/media_galleries/gallery_watch_manager.h" |
| 15 #include "chrome/browser/media_galleries/gallery_watch_manager_observer.h" | 17 #include "chrome/browser/media_galleries/gallery_watch_manager_observer.h" |
| 16 #include "chrome/browser/media_galleries/media_galleries_preferences.h" | 18 #include "chrome/browser/media_galleries/media_galleries_preferences.h" |
| 17 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h" | 19 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h" |
| 18 #include "chrome/browser/media_galleries/media_galleries_test_util.h" | 20 #include "chrome/browser/media_galleries/media_galleries_test_util.h" |
| 19 #include "chrome/test/base/testing_profile.h" | 21 #include "chrome/test/base/testing_profile.h" |
| 20 #include "components/storage_monitor/test_storage_monitor.h" | 22 #include "components/storage_monitor/test_storage_monitor.h" |
| 21 #include "content/public/test/test_browser_thread_bundle.h" | 23 #include "content/public/test/test_browser_thread_bundle.h" |
| 22 #include "extensions/browser/extension_system.h" | 24 #include "extensions/browser/extension_system.h" |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 ShutdownProfile(); | 397 ShutdownProfile(); |
| 396 | 398 |
| 397 // Trigger a removable storage event that should be ignored now that the | 399 // Trigger a removable storage event that should be ignored now that the |
| 398 // profile has been destroyed to catch regressions. crbug.com/467627 | 400 // profile has been destroyed to catch regressions. crbug.com/467627 |
| 399 base::RunLoop run_loop; | 401 base::RunLoop run_loop; |
| 400 storage_monitor()->receiver()->ProcessDetach(storage_info.device_id()); | 402 storage_monitor()->receiver()->ProcessDetach(storage_info.device_id()); |
| 401 run_loop.RunUntilIdle(); | 403 run_loop.RunUntilIdle(); |
| 402 } | 404 } |
| 403 | 405 |
| 404 } // namespace component_updater | 406 } // namespace component_updater |
| OLD | NEW |