| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "encodings/compact_lang_det/win/normalizedunicodetext.h" | 5 #include "encodings/compact_lang_det/win/normalizedunicodetext.h" |
| 6 | 6 |
| 7 #include <tchar.h> | 7 #include <tchar.h> |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <winnls.h> | 9 #include <winnls.h> |
| 10 | 10 |
| 11 #include "encodings/compact_lang_det/win/cld_scopedptr.h" | 11 #include "encodings/compact_lang_det/win/cld_scopedptr.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 } | 163 } |
| 164 | 164 |
| 165 // Try again with the corrected buffer size. | 165 // Try again with the corrected buffer size. |
| 166 normalized_text_size_guess = -normalized_text_size; | 166 normalized_text_size_guess = -normalized_text_size; |
| 167 } | 167 } |
| 168 | 168 |
| 169 // Use the original text in case of any problem with normalization. | 169 // Use the original text in case of any problem with normalization. |
| 170 text_.reset(); | 170 text_.reset(); |
| 171 return text; | 171 return text; |
| 172 } | 172 } |
| OLD | NEW |