| 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/thread_task_runner_handle.h" | 6 #include "base/threading/thread_task_runner_handle.h" |
| 7 #include "chrome/browser/chromeos/extensions/file_manager/device_event_router.h" | 7 #include "chrome/browser/chromeos/extensions/file_manager/device_event_router.h" |
| 8 #include "chrome/browser/chromeos/file_manager/volume_manager.h" | 8 #include "chrome/browser/chromeos/file_manager/volume_manager.h" |
| 9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
| 10 | 10 |
| 11 namespace file_manager { | 11 namespace file_manager { |
| 12 namespace { | 12 namespace { |
| 13 namespace file_manager_private = extensions::api::file_manager_private; | 13 namespace file_manager_private = extensions::api::file_manager_private; |
| 14 using content::BrowserThread; | 14 using content::BrowserThread; |
| 15 } // namespace | 15 } // namespace |
| 16 | 16 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 device_states_[device_path] = state; | 153 device_states_[device_path] = state; |
| 154 } else { | 154 } else { |
| 155 const std::map<std::string, DeviceState>::iterator it = | 155 const std::map<std::string, DeviceState>::iterator it = |
| 156 device_states_.find(device_path); | 156 device_states_.find(device_path); |
| 157 if (it != device_states_.end()) | 157 if (it != device_states_.end()) |
| 158 device_states_.erase(it); | 158 device_states_.erase(it); |
| 159 } | 159 } |
| 160 } | 160 } |
| 161 | 161 |
| 162 } // namespace file_manager | 162 } // namespace file_manager |
| OLD | NEW |