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

Side by Side Diff: components/translate/core/browser/translate_language_list.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/browser/translate_language_list.h" 5 #include "components/translate/core/browser/translate_language_list.h"
6 6
7 #include <stddef.h>
8
7 #include <set> 9 #include <set>
8 10
9 #include "base/bind.h" 11 #include "base/bind.h"
10 #include "base/json/json_reader.h" 12 #include "base/json/json_reader.h"
11 #include "base/lazy_instance.h" 13 #include "base/lazy_instance.h"
12 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/macros.h"
13 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
14 #include "base/strings/stringprintf.h" 17 #include "base/strings/stringprintf.h"
15 #include "base/values.h" 18 #include "base/values.h"
16 #include "components/translate/core/browser/translate_browser_metrics.h" 19 #include "components/translate/core/browser/translate_browser_metrics.h"
17 #include "components/translate/core/browser/translate_download_manager.h" 20 #include "components/translate/core/browser/translate_download_manager.h"
18 #include "components/translate/core/browser/translate_event_details.h" 21 #include "components/translate/core/browser/translate_event_details.h"
19 #include "components/translate/core/browser/translate_url_fetcher.h" 22 #include "components/translate/core/browser/translate_url_fetcher.h"
20 #include "components/translate/core/browser/translate_url_util.h" 23 #include "components/translate/core/browser/translate_url_util.h"
21 #include "components/translate/core/common/translate_util.h" 24 #include "components/translate/core/common/translate_util.h"
22 #include "net/base/url_util.h" 25 #include "net/base/url_util.h"
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 !iter.IsAtEnd(); iter.Advance()) { 353 !iter.IsAtEnd(); iter.Advance()) {
351 const std::string& lang = iter.key(); 354 const std::string& lang = iter.key();
352 if (!l10n_util::IsLocaleNameTranslated(lang.c_str(), locale)) 355 if (!l10n_util::IsLocaleNameTranslated(lang.c_str(), locale))
353 continue; 356 continue;
354 alpha_languages_.insert(lang); 357 alpha_languages_.insert(lang);
355 } 358 }
356 return true; 359 return true;
357 } 360 }
358 361
359 } // namespace translate 362 } // namespace translate
OLDNEW
« no previous file with comments | « components/translate/core/browser/translate_language_list.h ('k') | components/translate/core/browser/translate_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698