diff options
-rw-r--r-- | chrome/common/platform_util_mac.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/common/platform_util_mac.mm b/chrome/common/platform_util_mac.mm index 41ca53b..b8787ea8 100644 --- a/chrome/common/platform_util_mac.mm +++ b/chrome/common/platform_util_mac.mm @@ -16,12 +16,14 @@ namespace platform_util { void ShowItemInFolder(const FilePath& full_path) { + DCHECK_EQ([NSThread currentThread], [NSThread mainThread]); NSString* path_string = base::SysUTF8ToNSString(full_path.value()); [[NSWorkspace sharedWorkspace] selectFile:path_string inFileViewerRootedAtPath:nil]; } void OpenItem(const FilePath& full_path) { + DCHECK_EQ([NSThread currentThread], [NSThread mainThread]); NSString* path_string = base::SysUTF8ToNSString(full_path.value()); [[NSWorkspace sharedWorkspace] openFile:path_string]; } |