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/chromeos/file_manager/volume_manager.h" | 5 #include "chrome/browser/chromeos/file_manager/volume_manager.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
14 #include "base/prefs/pref_service.h" | 14 #include "base/prefs/pref_service.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "chrome/browser/chromeos/drive/drive_integration_service.h" | 18 #include "chrome/browser/chromeos/drive/drive_integration_service.h" |
| 19 #include "chrome/browser/chromeos/drive/file_system_core_util.h" |
19 #include "chrome/browser/chromeos/drive/file_system_interface.h" | 20 #include "chrome/browser/chromeos/drive/file_system_interface.h" |
20 #include "chrome/browser/chromeos/drive/file_system_util.h" | 21 #include "chrome/browser/chromeos/drive/file_system_util.h" |
21 #include "chrome/browser/chromeos/file_manager/path_util.h" | 22 #include "chrome/browser/chromeos/file_manager/path_util.h" |
22 #include "chrome/browser/chromeos/file_manager/snapshot_manager.h" | 23 #include "chrome/browser/chromeos/file_manager/snapshot_manager.h" |
23 #include "chrome/browser/chromeos/file_manager/volume_manager_factory.h" | 24 #include "chrome/browser/chromeos/file_manager/volume_manager_factory.h" |
24 #include "chrome/browser/chromeos/file_manager/volume_manager_observer.h" | 25 #include "chrome/browser/chromeos/file_manager/volume_manager_observer.h" |
25 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" | 26 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" |
26 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 27 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
27 #include "chrome/browser/media_galleries/fileapi/mtp_device_map_service.h" | 28 #include "chrome/browser/media_galleries/fileapi/mtp_device_map_service.h" |
28 #include "chrome/browser/profiles/profile.h" | 29 #include "chrome/browser/profiles/profile.h" |
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
866 if (mounted_volumes_.find(volume->volume_id()) == mounted_volumes_.end()) | 867 if (mounted_volumes_.find(volume->volume_id()) == mounted_volumes_.end()) |
867 return; | 868 return; |
868 if (error_code == chromeos::MOUNT_ERROR_NONE) | 869 if (error_code == chromeos::MOUNT_ERROR_NONE) |
869 mounted_volumes_.erase(volume->volume_id()); | 870 mounted_volumes_.erase(volume->volume_id()); |
870 | 871 |
871 FOR_EACH_OBSERVER(VolumeManagerObserver, observers_, | 872 FOR_EACH_OBSERVER(VolumeManagerObserver, observers_, |
872 OnVolumeUnmounted(error_code, *volume.get())); | 873 OnVolumeUnmounted(error_code, *volume.get())); |
873 } | 874 } |
874 | 875 |
875 } // namespace file_manager | 876 } // namespace file_manager |
OLD | NEW |