| OLD | NEW |
| 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 "chrome/browser/ui/autofill/country_combobox_model.h" | 5 #include "chrome/browser/ui/autofill/country_combobox_model.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/signin/account_tracker_service_factory.h" | 10 #include "chrome/browser/signin/account_tracker_service_factory.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 ::i18n::addressinput::Localization localization; | 58 ::i18n::addressinput::Localization localization; |
| 59 std::string unused; | 59 std::string unused; |
| 60 for (int i = 0; i < model()->GetItemCount(); ++i) { | 60 for (int i = 0; i < model()->GetItemCount(); ++i) { |
| 61 if (model()->IsItemSeparatorAt(i)) | 61 if (model()->IsItemSeparatorAt(i)) |
| 62 continue; | 62 continue; |
| 63 | 63 |
| 64 std::string country_code = model()->countries()[i]->country_code(); | 64 std::string country_code = model()->countries()[i]->country_code(); |
| 65 std::vector< ::i18n::addressinput::AddressUiComponent> components = | 65 std::vector< ::i18n::addressinput::AddressUiComponent> components = |
| 66 ::i18n::addressinput::BuildComponents( | 66 ::i18n::addressinput::BuildComponents( |
| 67 country_code, localization, std::string(), &unused); | 67 country_code, localization, std::string(), &unused); |
| 68 EXPECT_FALSE(components.empty()); | 68 EXPECT_FALSE(components.empty()) << " for country " << country_code; |
| 69 } | 69 } |
| 70 } | 70 } |
| 71 | 71 |
| 72 } // namespace autofill | 72 } // namespace autofill |
| OLD | NEW |