Index: components/autofill/content/renderer/form_cache.cc |
diff --git a/components/autofill/content/renderer/form_cache.cc b/components/autofill/content/renderer/form_cache.cc |
index 0ff07229ed661ac48169382c8d6f28bc9fd18043..925379d1915662fc9826d81efd9a8fe3c95c42e4 100644 |
--- a/components/autofill/content/renderer/form_cache.cc |
+++ b/components/autofill/content/renderer/form_cache.cc |
@@ -45,10 +45,10 @@ void LogDeprecationMessages(const WebFormControlElement& element) { |
element.getAttribute("autocomplete"))); |
static const char* const deprecated[] = { "region", "locality" }; |
- for (size_t i = 0; i < arraysize(deprecated); ++i) { |
- if (autocomplete_attribute.find(deprecated[i]) == std::string::npos) |
+ for (const char* str : deprecated) { |
+ if (autocomplete_attribute.find(str) == std::string::npos) |
continue; |
- std::string msg = std::string("autocomplete='") + deprecated[i] + |
+ std::string msg = std::string("autocomplete='") + str + |
"' is deprecated and will soon be ignored. See http://goo.gl/YjeSsW"; |
WebConsoleMessage console_message = WebConsoleMessage( |
WebConsoleMessage::LevelWarning, |