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

Side by Side Diff: chrome/browser/autofill/autofill_country.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/autofill/autofill_country.h" 5 #include "chrome/browser/autofill/autofill_country.h"
6 6
7 #include <map> 7 #include <map>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/singleton.h" 14 #include "base/memory/singleton.h"
15 #include "base/stl_util.h" 15 #include "base/stl_util.h"
16 #include "base/string_util.h" 16 #include "base/string_util.h"
17 #include "base/utf_string_conversions.h" 17 #include "base/utf_string_conversions.h"
18 #include "chrome/browser/browser_process.h" 18 #include "chrome/browser/browser_process.h"
19 #include "content/public/browser/browser_thread.h" 19 #include "content/public/browser/browser_thread.h"
20 #include "grit/generated_resources.h" 20 #include "grit/generated_resources.h"
21 #include "ui/base/l10n/l10n_util.h" 21 #include "ui/base/l10n/l10n_util.h"
22 #include "unicode/coll.h" 22 #include "unicode/coll.h"
23 #include "unicode/locid.h" 23 #include "unicode/locid.h"
24 #include "unicode/ucol.h" 24 #include "unicode/ucol.h"
25 #include "unicode/uloc.h" 25 #include "unicode/uloc.h"
26 #include "unicode/unistr.h" 26 #include "unicode/unistr.h"
27 #include "unicode/urename.h" 27 #include "unicode/urename.h"
28 #include "unicode/utypes.h" 28 #include "unicode/utypes.h"
29 29
30 using content::BrowserThread;
31
30 namespace { 32 namespace {
31 33
32 // The maximum capacity needed to store a locale up to the country code. 34 // The maximum capacity needed to store a locale up to the country code.
33 const size_t kLocaleCapacity = 35 const size_t kLocaleCapacity =
34 ULOC_LANG_CAPACITY + ULOC_SCRIPT_CAPACITY + ULOC_COUNTRY_CAPACITY + 1; 36 ULOC_LANG_CAPACITY + ULOC_SCRIPT_CAPACITY + ULOC_COUNTRY_CAPACITY + 1;
35 37
36 struct CountryData { 38 struct CountryData {
37 int postal_code_label_id; 39 int postal_code_label_id;
38 int state_label_id; 40 int state_label_id;
39 }; 41 };
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 651
650 AutofillCountry::AutofillCountry(const std::string& country_code, 652 AutofillCountry::AutofillCountry(const std::string& country_code,
651 const string16& name, 653 const string16& name,
652 const string16& postal_code_label, 654 const string16& postal_code_label,
653 const string16& state_label) 655 const string16& state_label)
654 : country_code_(country_code), 656 : country_code_(country_code),
655 name_(name), 657 name_(name),
656 postal_code_label_(postal_code_label), 658 postal_code_label_(postal_code_label),
657 state_label_(state_label) { 659 state_label_(state_label) {
658 } 660 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/address_unittest.cc ('k') | chrome/browser/autofill/autofill_download_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698