| 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 #include "chrome/browser/storage_monitor/storage_monitor_mac.h" | 5 #include "chrome/browser/storage_monitor/storage_monitor_mac.h" |
| 6 | 6 |
| 7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
| 8 #include "base/mac/mac_util.h" | 8 #include "base/mac/mac_util.h" |
| 9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 for (std::map<std::string, StorageInfo>::const_iterator | 362 for (std::map<std::string, StorageInfo>::const_iterator |
| 363 it = disk_info_map_.begin(); it != disk_info_map_.end(); ++it) { | 363 it = disk_info_map_.begin(); it != disk_info_map_.end(); ++it) { |
| 364 if (it->second.location() == mount_point.value()) { | 364 if (it->second.location() == mount_point.value()) { |
| 365 *info = it->second; | 365 *info = it->second; |
| 366 return true; | 366 return true; |
| 367 } | 367 } |
| 368 } | 368 } |
| 369 return false; | 369 return false; |
| 370 } | 370 } |
| 371 | 371 |
| 372 StorageMonitor* StorageMonitor::Create() { |
| 373 return new StorageMonitorMac(); |
| 374 } |
| 375 |
| 372 } // namespace chrome | 376 } // namespace chrome |
| OLD | NEW |