| 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/media_galleries/fileapi/iapps_finder_impl.h" | 5 #include "chrome/browser/media_galleries/fileapi/iapps_finder_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #import "base/mac/foundation_util.h" | 10 #import "base/mac/foundation_util.h" |
| 11 #import "base/mac/scoped_nsobject.h" | 11 #import "base/mac/scoped_nsobject.h" |
| 12 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "components/policy/core/common/preferences_mac.h" | 14 #include "components/policy/core/common/preferences_mac.h" |
| 15 #include "components/storage_monitor/storage_info.h" | 15 #include "components/storage_monitor/storage_info.h" |
| 16 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
| 17 | 17 |
| 18 using base::mac::CFCast; | 18 using base::mac::CFCast; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 } | 114 } |
| 115 | 115 |
| 116 NSArray* NSArrayFromFilePath(const base::FilePath& path) { | 116 NSArray* NSArrayFromFilePath(const base::FilePath& path) { |
| 117 NSString* url = | 117 NSString* url = |
| 118 [[NSURL fileURLWithPath:base::SysUTF8ToNSString(path.value())] | 118 [[NSURL fileURLWithPath:base::SysUTF8ToNSString(path.value())] |
| 119 absoluteString]; | 119 absoluteString]; |
| 120 return [NSArray arrayWithObject:url]; | 120 return [NSArray arrayWithObject:url]; |
| 121 } | 121 } |
| 122 | 122 |
| 123 } // namespace iapps | 123 } // namespace iapps |
| OLD | NEW |