| 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 "app/resource_bundle.h" | 5 #include "app/resource_bundle.h" |
| 6 | 6 |
| 7 #include <atlbase.h> | 7 #include <atlbase.h> |
| 8 | 8 |
| 9 #include "app/app_paths.h" | 9 #include "app/app_paths.h" |
| 10 #include "app/data_pack.h" |
| 10 #include "app/l10n_util.h" | 11 #include "app/l10n_util.h" |
| 11 #include "base/data_pack.h" | |
| 12 #include "base/debug_util.h" | 12 #include "base/debug_util.h" |
| 13 #include "base/debug/stack_trace.h" | 13 #include "base/debug/stack_trace.h" |
| 14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
| 15 #include "base/lock.h" | 15 #include "base/lock.h" |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
| 18 #include "base/resource_util.h" | 18 #include "base/resource_util.h" |
| 19 #include "base/stl_util-inl.h" | 19 #include "base/stl_util-inl.h" |
| 20 #include "base/string_piece.h" | 20 #include "base/string_piece.h" |
| 21 #include "base/win/windows_version.h" | 21 #include "base/win/windows_version.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 if (!image) { | 159 if (!image) { |
| 160 // See http://crbug.com/21925. | 160 // See http://crbug.com/21925. |
| 161 base::debug::StackTrace().PrintBacktrace(); | 161 base::debug::StackTrace().PrintBacktrace(); |
| 162 NOTREACHED() << "unable to find resource: " << message_id; | 162 NOTREACHED() << "unable to find resource: " << message_id; |
| 163 return std::wstring(); | 163 return std::wstring(); |
| 164 } | 164 } |
| 165 } | 165 } |
| 166 // Copy into a string16 and return. | 166 // Copy into a string16 and return. |
| 167 return string16(image->achString, image->nLength); | 167 return string16(image->achString, image->nLength); |
| 168 } | 168 } |
| OLD | NEW |