| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/platform_util.h" | 5 #include "chrome/browser/platform_util.h" |
| 6 | 6 |
| 7 #include <Carbon/Carbon.h> |
| 7 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 8 #import <CoreServices/CoreServices.h> | 9 #import <CoreServices/CoreServices.h> |
| 9 | 10 |
| 10 #include "app/l10n_util.h" | 11 #include "app/l10n_util.h" |
| 11 #include "app/l10n_util_mac.h" | 12 #include "app/l10n_util_mac.h" |
| 12 #include "base/file_path.h" | 13 #include "base/file_path.h" |
| 13 #include "base/logging.h" | 14 #include "base/logging.h" |
| 14 #include "base/mac_util.h" | |
| 15 #include "base/mac/scoped_aedesc.h" | 15 #include "base/mac/scoped_aedesc.h" |
| 16 #include "base/sys_string_conversions.h" | 16 #include "base/sys_string_conversions.h" |
| 17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
| 18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
| 19 | 19 |
| 20 namespace platform_util { | 20 namespace platform_util { |
| 21 | 21 |
| 22 void ShowItemInFolder(const FilePath& full_path) { | 22 void ShowItemInFolder(const FilePath& full_path) { |
| 23 DCHECK_EQ([NSThread currentThread], [NSThread mainThread]); | 23 DCHECK_EQ([NSThread currentThread], [NSThread mainThread]); |
| 24 NSString* path_string = base::SysUTF8ToNSString(full_path.value()); | 24 NSString* path_string = base::SysUTF8ToNSString(full_path.value()); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 channel = @"unknown"; | 200 channel = @"unknown"; |
| 201 } | 201 } |
| 202 | 202 |
| 203 return base::SysNSStringToUTF8(channel); | 203 return base::SysNSStringToUTF8(channel); |
| 204 #else | 204 #else |
| 205 return std::string(); | 205 return std::string(); |
| 206 #endif | 206 #endif |
| 207 } | 207 } |
| 208 | 208 |
| 209 } // namespace platform_util | 209 } // namespace platform_util |
| OLD | NEW |