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

Side by Side Diff: components/translate/core/language_detection/language_detection_util.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/translate/core/language_detection/language_detection_util.h " 5 #include "components/translate/core/language_detection/language_detection_util.h "
6 6
7 #include <stddef.h>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h"
8 #include "base/strings/string_split.h" 11 #include "base/strings/string_split.h"
9 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
11 #include "base/time/time.h" 14 #include "base/time/time.h"
12 #include "components/translate/core/common/translate_constants.h" 15 #include "components/translate/core/common/translate_constants.h"
13 #include "components/translate/core/common/translate_metrics.h" 16 #include "components/translate/core/common/translate_metrics.h"
14 #include "components/translate/core/common/translate_util.h" 17 #include "components/translate/core/common/translate_util.h"
15 18
16 #if CLD_VERSION==1 19 #if CLD_VERSION==1
17 #include "third_party/cld/encodings/compact_lang_det/compact_lang_det.h" 20 #include "third_party/cld/encodings/compact_lang_det/compact_lang_det.h"
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 // distinguish from English, and the language is one of well-known languages 385 // distinguish from English, and the language is one of well-known languages
383 // which often provide "en-*" meta information mistakenly. 386 // which often provide "en-*" meta information mistakenly.
384 for (size_t i = 0; i < arraysize(kWellKnownCodesOnWrongConfiguration); ++i) { 387 for (size_t i = 0; i < arraysize(kWellKnownCodesOnWrongConfiguration); ++i) {
385 if (cld_language == kWellKnownCodesOnWrongConfiguration[i]) 388 if (cld_language == kWellKnownCodesOnWrongConfiguration[i])
386 return true; 389 return true;
387 } 390 }
388 return false; 391 return false;
389 } 392 }
390 393
391 } // namespace translate 394 } // namespace translate
OLDNEW
« no previous file with comments | « components/translate/core/common/translate_util.cc ('k') | components/translate/ios/browser/ios_translate_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698