From 4c81b03bc1e877d72b3f6b691cf0d5e86ec16557 Mon Sep 17 00:00:00 2001 From: "erikkay@google.com" Date: Mon, 15 Jun 2009 20:26:26 +0000 Subject: 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 --- chrome/browser/extensions/external_pref_extension_provider.cc | 5 +---- 1 file changed, 1 insertion(+), 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)) -- cgit v1.1