Index: chrome/browser/media_galleries/fileapi/iapps_finder_impl_mac.mm |
diff --git a/chrome/browser/media_galleries/fileapi/iapps_finder_impl_mac.mm b/chrome/browser/media_galleries/fileapi/iapps_finder_impl_mac.mm |
index d1d75721bf336b785856b4164dca686d8f0f658b..0933c1d7555d1af64d122964447b62c6f2253023 100644 |
--- a/chrome/browser/media_galleries/fileapi/iapps_finder_impl_mac.mm |
+++ b/chrome/browser/media_galleries/fileapi/iapps_finder_impl_mac.mm |
@@ -9,11 +9,13 @@ |
#include "base/logging.h" |
#import "base/mac/foundation_util.h" |
#import "base/mac/scoped_nsobject.h" |
+#include "base/strings/sys_string_conversions.h" |
#include "base/time/time.h" |
#include "chrome/browser/storage_monitor/storage_info.h" |
#include "components/policy/core/common/preferences_mac.h" |
#include "content/public/browser/browser_thread.h" |
+ |
vandebo (ex-Chrome)
2014/01/06 18:45:03
nit: extra line.
Greg Billock
2014/01/07 16:50:55
Done.
|
using base::mac::CFCast; |
using base::mac::CFToNSCast; |
using base::mac::NSToCFCast; |
@@ -112,4 +114,11 @@ void SetMacPreferencesForTesting(MacPreferences* preferences) { |
g_test_mac_preferences = preferences; |
} |
+NSArray* NSArrayFromFilePath(const base::FilePath& path) { |
+ NSString* url = |
+ [[NSURL fileURLWithPath:base::SysUTF8ToNSString(path.value())] |
+ absoluteString]; |
+ return [NSArray arrayWithObject:url]; |
+} |
+ |
} // namespace iapps |