summaryrefslogtreecommitdiffstats
path: root/chrome/test/ui/omnibox_uitest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/ui/omnibox_uitest.cc')
-rw-r--r--chrome/test/ui/omnibox_uitest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/test/ui/omnibox_uitest.cc b/chrome/test/ui/omnibox_uitest.cc
index d8c5c5a..4620418 100644
--- a/chrome/test/ui/omnibox_uitest.cc
+++ b/chrome/test/ui/omnibox_uitest.cc
@@ -58,13 +58,13 @@ class OmniboxTest : public UITest {
bool OmniboxTest::IsMatch(const std::wstring& input_text,
const std::wstring& suggestion) {
// This prefix list comes from the list used in history_url_provider.cc
- // withiff the exception of "ftp." and "www.".
+ // with the exception of "ftp." and "www.".
std::wstring prefixes[] = {L"", L"ftp://", L"http://", L"https://",
L"ftp.", L"www.", L"ftp://www.", L"ftp://ftp.",
L"http://www.", L"https://www."};
std::wstring postfixes[] = {L"", L"/"};
- for (int i = 0; i < sizeof(prefixes) / sizeof(std::wstring); ++i) {
- for (int j = 0; j < sizeof(postfixes) / sizeof(std::wstring); ++j) {
+ for (size_t i = 0; i < arraysize(prefixes); ++i) {
+ for (size_t j = 0; j < arraysize(postfixes); ++j) {
if (prefixes[i] + input_text + postfixes[j] == suggestion)
return true;
}