summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-15 20:26:26 +0000
committererikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-15 20:26:26 +0000
commit4c81b03bc1e877d72b3f6b691cf0d5e86ec16557 (patch)
tree7ccdf6dd3dba2cd9e82a4c50577474feb36e61b5
parenta8d291f1d760d9bbc0adf38bee5caada097513cf (diff)
downloadchromium_src-4c81b03bc1e877d72b3f6b691cf0d5e86ec16557.zip
chromium_src-4c81b03bc1e877d72b3f6b691cf0d5e86ec16557.tar.gz
chromium_src-4c81b03bc1e877d72b3f6b691cf0d5e86ec16557.tar.bz2
Fix a crash during extension installation (debug only).
BUG=none TEST=browser_tests.exe --gtest_filter=ExtensionViewTest.Incognito Review URL: http://codereview.chromium.org/126151 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18427 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/extensions/external_pref_extension_provider.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/browser/extensions/external_pref_extension_provider.cc b/chrome/browser/extensions/external_pref_extension_provider.cc
index ca18753..5ed1a5e 100644
--- a/chrome/browser/extensions/external_pref_extension_provider.cc
+++ b/chrome/browser/extensions/external_pref_extension_provider.cc
@@ -66,11 +66,8 @@ void ExternalPrefExtensionProvider::VisitRegisteredExtension(
Version* ExternalPrefExtensionProvider::RegisteredVersion(
std::string id, Extension::Location* location) const {
DictionaryValue* extension = NULL;
- if (!prefs_->GetDictionary(ASCIIToWide(id), &extension)) {
- NOTREACHED() << "Cannot read extension " << id.c_str()
- << " from dictionary.";
+ if (!prefs_->GetDictionary(ASCIIToWide(id), &extension))
return NULL;
- }
std::string external_version;
if (!extension->GetString(kExternalVersion, &external_version))