diff options
author | pneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-26 23:58:14 +0000 |
---|---|---|
committer | pneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-26 23:58:14 +0000 |
commit | a703e71ecc392ca01fb72d01f91129d347f24a7b (patch) | |
tree | 0a61875ef80c65a5f0ee5e7dcdbddc3ddd151ab3 /chrome/browser/devtools | |
parent | bf1b47a25e4d6af77e24344e99c794b68998be82 (diff) | |
download | chromium_src-a703e71ecc392ca01fb72d01f91129d347f24a7b.zip chromium_src-a703e71ecc392ca01fb72d01f91129d347f24a7b.tar.gz chromium_src-a703e71ecc392ca01fb72d01f91129d347f24a7b.tar.bz2 |
Replacing DictionaryValue::key_iterator by DictionaryValue::Iterator in several folders in chrome/browser.
This is one of several CLs of a larger refactoring that prepares for the removal of key_iterator.
BUG=162611
Review URL: https://chromiumcodereview.appspot.com/12321109
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184779 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/devtools')
-rw-r--r-- | chrome/browser/devtools/devtools_file_helper.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/devtools/devtools_file_helper.cc b/chrome/browser/devtools/devtools_file_helper.cc index 6e8856d..3d5d16d 100644 --- a/chrome/browser/devtools/devtools_file_helper.cc +++ b/chrome/browser/devtools/devtools_file_helper.cc @@ -353,9 +353,9 @@ void DevToolsFileHelper::RequestFileSystems( const DictionaryValue* file_systems_paths_value = profile_->GetPrefs()->GetDictionary(prefs::kDevToolsFileSystemPaths); std::vector<base::FilePath> saved_paths; - DictionaryValue::key_iterator it = file_systems_paths_value->begin_keys(); - for (; it != file_systems_paths_value->end_keys(); ++it) { - std::string file_system_path = *it; + for (DictionaryValue::Iterator it(*file_systems_paths_value); !it.IsAtEnd(); + it.Advance()) { + std::string file_system_path = it.key(); base::FilePath path = base::FilePath::FromUTF8Unsafe(file_system_path); saved_paths.push_back(path); } |