Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: chrome/installer/util/language_selector.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 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 // This file defines a helper class for selecting a supported language from a 5 // This file defines a helper class for selecting a supported language from a
6 // set of candidates. 6 // set of candidates.
7 7
8 #include "chrome/installer/util/language_selector.h" 8 #include "chrome/installer/util/language_selector.h"
9 9
10 #include <stddef.h>
11
10 #include <algorithm> 12 #include <algorithm>
11 #include <functional> 13 #include <functional>
12 14
13 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/macros.h"
14 #include "base/strings/string16.h" 17 #include "base/strings/string16.h"
15 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
16 #include "base/win/i18n.h" 19 #include "base/win/i18n.h"
17 #include "chrome/installer/util/google_update_settings.h" 20 #include "chrome/installer/util/google_update_settings.h"
18 #include "chrome/installer/util/installer_util_strings.h" 21 #include "chrome/installer/util/installer_util_strings.h"
19 22
20 namespace { 23 namespace {
21 24
22 struct LangToOffset { 25 struct LangToOffset {
23 const wchar_t* language; 26 const wchar_t* language;
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 VLOG(1) << "No suitable language found for any candidates."; 271 VLOG(1) << "No suitable language found for any candidates.";
269 272
270 // Our fallback is "en-us" 273 // Our fallback is "en-us"
271 matched_candidate_.assign(&kFallbackLanguage[0], 274 matched_candidate_.assign(&kFallbackLanguage[0],
272 arraysize(kFallbackLanguage) - 1); 275 arraysize(kFallbackLanguage) - 1);
273 offset_ = kFallbackLanguageOffset; 276 offset_ = kFallbackLanguageOffset;
274 } 277 }
275 } 278 }
276 279
277 } // namespace installer 280 } // namespace installer
OLDNEW
« no previous file with comments | « chrome/installer/util/language_selector.h ('k') | chrome/installer/util/language_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698