diff options
author | pneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-12 09:25:23 +0000 |
---|---|---|
committer | pneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-12 09:25:23 +0000 |
commit | ee6ba60fd0a4859d62f2651c39425657d95d1d58 (patch) | |
tree | c879fceacac87d5b6bbc6ef47bd5cb74dd17bb35 /chrome/browser/policy/policy_loader_win_unittest.cc | |
parent | 4dec840f200451443c05b233c9d800e17355e65c (diff) | |
download | chromium_src-ee6ba60fd0a4859d62f2651c39425657d95d1d58.zip chromium_src-ee6ba60fd0a4859d62f2651c39425657d95d1d58.tar.gz chromium_src-ee6ba60fd0a4859d62f2651c39425657d95d1d58.tar.bz2 |
Remove base::DictionaryValue::HasNext.
BUG=162611
TBR=alexeypa@chromium.org (for remoting/)
Review URL: https://chromiumcodereview.appspot.com/13408007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193888 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/policy/policy_loader_win_unittest.cc')
-rw-r--r-- | chrome/browser/policy/policy_loader_win_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/policy/policy_loader_win_unittest.cc b/chrome/browser/policy/policy_loader_win_unittest.cc index 00b303b..5193063 100644 --- a/chrome/browser/policy/policy_loader_win_unittest.cc +++ b/chrome/browser/policy/policy_loader_win_unittest.cc @@ -81,7 +81,7 @@ bool InstallValue(const base::Value& value, if (!value.GetAsDictionary(&sub_dict)) return false; for (base::DictionaryValue::Iterator it(*sub_dict); - it.HasNext(); it.Advance()) { + !it.IsAtEnd(); it.Advance()) { if (!InstallValue(it.value(), hive, path + kPathSep + name, UTF8ToUTF16(it.key()))) { return false; @@ -149,7 +149,7 @@ base::DictionaryValue* BuildSchema(const base::Value& value) { if (value.GetAsDictionary(&dict)) { base::DictionaryValue* properties = new base::DictionaryValue(); for (base::DictionaryValue::Iterator it(*dict); - it.HasNext(); it.Advance()) { + !it.IsAtEnd(); it.Advance()) { properties->Set(it.key(), BuildSchema(it.value())); } schema->SetString(schema::kType, "object"); @@ -379,14 +379,14 @@ void TestHarness::Install3rdPartyPolicy(const base::DictionaryValue* policies) { const string16 kPathPrefix = string16(kRegistryMandatorySubKey) + kPathSep + kThirdParty + kPathSep; for (base::DictionaryValue::Iterator domain(*policies); - domain.HasNext(); domain.Advance()) { + !domain.IsAtEnd(); domain.Advance()) { const base::DictionaryValue* components = NULL; if (!domain.value().GetAsDictionary(&components)) { ADD_FAILURE(); continue; } for (base::DictionaryValue::Iterator component(*components); - component.HasNext(); component.Advance()) { + !component.IsAtEnd(); component.Advance()) { const string16 path = string16(kRegistryMandatorySubKey) + kPathSep + kThirdParty + kPathSep + UTF8ToUTF16(domain.key()) + kPathSep + |