diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-05 20:32:36 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-05 20:32:36 +0000 |
commit | c125785e44a35b03ac1193c42328126b479352d3 (patch) | |
tree | 8263e1c8c13669dcec61aeb56f0ea8081b210664 /chrome/browser/extensions | |
parent | 9a1a6c88f479a002c31778603664f00b19dfeae2 (diff) | |
download | chromium_src-c125785e44a35b03ac1193c42328126b479352d3.zip chromium_src-c125785e44a35b03ac1193c42328126b479352d3.tar.gz chromium_src-c125785e44a35b03ac1193c42328126b479352d3.tar.bz2 |
extensions: clean up some code I saw while tracking down a bug
The bug was already fixed, but this change shouldn't hurt too.
Review URL: http://codereview.chromium.org/162020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22524 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions')
-rw-r--r-- | chrome/browser/extensions/extension_file_util.cc | 7 |
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; } } |