| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // RemovableDeviceNotificationsLinux implementation. | 5 // RemovableDeviceNotificationsLinux implementation. |
| 6 | 6 |
| 7 #include "chrome/browser/system_monitor/removable_device_notifications_linux.h" | 7 #include "chrome/browser/system_monitor/removable_device_notifications_linux.h" |
| 8 | 8 |
| 9 #include <libudev.h> | 9 #include <libudev.h> |
| 10 #include <mntent.h> | 10 #include <mntent.h> |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 | 499 |
| 500 mount_info_map_[mount_point] = mount_point_info; | 500 mount_info_map_[mount_point] = mount_point_info; |
| 501 mount_priority_map_[mount_device][mount_point] = removable; | 501 mount_priority_map_[mount_device][mount_point] = removable; |
| 502 | 502 |
| 503 if (removable) { | 503 if (removable) { |
| 504 SystemMonitor::Get()->ProcessRemovableStorageAttached(device_id, name, | 504 SystemMonitor::Get()->ProcessRemovableStorageAttached(device_id, name, |
| 505 mount_point.value()); | 505 mount_point.value()); |
| 506 } | 506 } |
| 507 } | 507 } |
| 508 | 508 |
| 509 void RemovableDeviceNotificationsLinux::StartWatchingStorage( |
| 510 const FilePath& path) { |
| 511 NOTIMPLEMENTED(); |
| 512 } |
| 513 |
| 514 void RemovableDeviceNotificationsLinux::StopWatchingStorage( |
| 515 const FilePath& path) { |
| 516 NOTIMPLEMENTED(); |
| 517 } |
| 518 |
| 509 } // namespace chrome | 519 } // namespace chrome |
| OLD | NEW |