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/extensions/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/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
13 #include "chrome/browser/chromeos/extensions/file_manager/volume_manager_factory
.h" | 13 #include "chrome/browser/chromeos/file_manager/volume_manager_factory.h" |
14 #include "chrome/browser/chromeos/extensions/file_manager/volume_manager_observe
r.h" | 14 #include "chrome/browser/chromeos/file_manager/volume_manager_observer.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
17 #include "chromeos/dbus/cros_disks_client.h" | 17 #include "chromeos/dbus/cros_disks_client.h" |
18 #include "chromeos/disks/disk_mount_manager.h" | 18 #include "chromeos/disks/disk_mount_manager.h" |
19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
20 | 20 |
21 namespace file_manager { | 21 namespace file_manager { |
22 namespace { | 22 namespace { |
23 | 23 |
24 VolumeType MountTypeToVolumeType( | 24 VolumeType MountTypeToVolumeType( |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 VolumeManagerObserver, observers_, | 237 VolumeManagerObserver, observers_, |
238 OnFormatCompleted(device_path, | 238 OnFormatCompleted(device_path, |
239 error_code == chromeos::FORMAT_ERROR_NONE)); | 239 error_code == chromeos::FORMAT_ERROR_NONE)); |
240 | 240 |
241 return; | 241 return; |
242 } | 242 } |
243 NOTREACHED(); | 243 NOTREACHED(); |
244 } | 244 } |
245 | 245 |
246 } // namespace file_manager | 246 } // namespace file_manager |
OLD | NEW |