summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/extensions/extension_file_util.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/extensions/extension_file_util.cc b/chrome/browser/extensions/extension_file_util.cc
index 9020b1b..838bcdf 100644
--- a/chrome/browser/extensions/extension_file_util.cc
+++ b/chrome/browser/extensions/extension_file_util.cc
@@ -197,10 +197,10 @@ Extension* LoadExtension(const FilePath& extension_path, bool require_key,
if (extension->IsTheme()) {
DictionaryValue* images_value = extension->GetThemeImages();
if (images_value) {
- DictionaryValue::key_iterator iter = images_value->begin_keys();
- while (iter != images_value->end_keys()) {
+ for (DictionaryValue::key_iterator iter = images_value->begin_keys();
+ iter != images_value->end_keys(); ++iter) {
std::string val;
- if (images_value->GetString(*iter , &val)) {
+ if (images_value->GetString(*iter, &val)) {
FilePath image_path = extension->path().AppendASCII(val);
if (!file_util::PathExists(image_path)) {
*error = StringPrintf(
@@ -209,7 +209,6 @@ Extension* LoadExtension(const FilePath& extension_path, bool require_key,
return NULL;
}
}
- ++iter;
}
}