| 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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 | 502 |
| 503 mount_info_map_[mount_point] = mount_point_info; | 503 mount_info_map_[mount_point] = mount_point_info; |
| 504 mount_priority_map_[mount_device][mount_point] = removable; | 504 mount_priority_map_[mount_device][mount_point] = removable; |
| 505 | 505 |
| 506 if (removable) { | 506 if (removable) { |
| 507 SystemMonitor::Get()->ProcessRemovableStorageAttached(device_id, name, | 507 SystemMonitor::Get()->ProcessRemovableStorageAttached(device_id, name, |
| 508 mount_point.value()); | 508 mount_point.value()); |
| 509 } | 509 } |
| 510 } | 510 } |
| 511 | 511 |
| 512 bool RemovableDeviceNotificationsLinux::StartWatchingStorage( |
| 513 const FilePath::StringType& path) { |
| 514 return false; |
| 515 } |
| 516 |
| 517 bool RemovableDeviceNotificationsLinux::StopWatchingStorage( |
| 518 const FilePath::StringType& path) { |
| 519 return false; |
| 520 } |
| 521 |
| 512 } // namespace chrome | 522 } // namespace chrome |
| OLD | NEW |