From 4dad9ad838f6671fbd67e1c5292525e739e31983 Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Wed, 25 Nov 2009 20:47:52 +0000 Subject: Many changes to DictionaryValues: * Add support for keys with "." in them via new XXXWithoutPathExpansion() APIs. * Use these APIs with all key iterator usage. * SetXXX() calls cannot fail, so change them from bool to void. * Change GetSize() to size() since it's cheap, and add empty(). Other: * Use standard for loop format in more places (e.g. instead of while loops when they're really doing a for loop). * Shorten a few bits of code. BUG=567 TEST=none Review URL: http://codereview.chromium.org/441008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33109 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/external_pref_extension_provider.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'chrome/browser/extensions/external_pref_extension_provider.cc') diff --git a/chrome/browser/extensions/external_pref_extension_provider.cc b/chrome/browser/extensions/external_pref_extension_provider.cc index e0f491f..841f156 100644 --- a/chrome/browser/extensions/external_pref_extension_provider.cc +++ b/chrome/browser/extensions/external_pref_extension_provider.cc @@ -44,10 +44,9 @@ void ExternalPrefExtensionProvider::VisitRegisteredExtension( if (ids_to_ignore.find(WideToASCII(extension_id)) != ids_to_ignore.end()) continue; - DictionaryValue* extension = NULL; - if (!prefs_->GetDictionary(extension_id, &extension)) { + DictionaryValue* extension; + if (!prefs_->GetDictionaryWithoutPathExpansion(extension_id, &extension)) continue; - } FilePath::StringType external_crx; std::string external_version; -- cgit v1.1