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

Side by Side Diff: chrome/browser/ui/autofill/country_combobox_model_unittest.cc

Issue 1931043002: Remove requestAutocomplete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 "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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/country_combobox_model.cc ('k') | chrome/browser/ui/autofill/data_model_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698