| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/common/resource_bundle.h" | 5 #include "chrome/common/resource_bundle.h" |
| 6 | 6 |
| 7 #include <Cocoa/Cocoa.h> | 7 #import <Foundation/Foundation.h> |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/data_pack.h" | 10 #include "base/data_pack.h" |
| 11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
| 12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
| 15 #include "base/string_piece.h" | 15 #include "base/string_piece.h" |
| 16 #include "base/string_util.h" | 16 #include "base/string_util.h" |
| 17 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 NOTREACHED() << "unable to find resource: " << message_id; | 110 NOTREACHED() << "unable to find resource: " << message_id; |
| 111 return std::wstring(); | 111 return std::wstring(); |
| 112 } | 112 } |
| 113 } | 113 } |
| 114 | 114 |
| 115 // Data pack encodes strings as UTF16. | 115 // Data pack encodes strings as UTF16. |
| 116 string16 msg(reinterpret_cast<const char16*>(data.data()), | 116 string16 msg(reinterpret_cast<const char16*>(data.data()), |
| 117 data.length() / 2); | 117 data.length() / 2); |
| 118 return UTF16ToWide(msg); | 118 return UTF16ToWide(msg); |
| 119 } | 119 } |
| OLD | NEW |