From 9b410deed694663b06e2f56f21e9d29da5a430d2 Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Thu, 8 Oct 2009 21:12:35 +0000 Subject: Coverity: Assert that GetMutableDictionary returns a non-NULL dictionary. CID=6421 BUG=none TEST=none Review URL: http://codereview.chromium.org/270030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28452 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/extensions_service_unittest.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/browser/extensions') diff --git a/chrome/browser/extensions/extensions_service_unittest.cc b/chrome/browser/extensions/extensions_service_unittest.cc index d5d629f..0eeaa09 100644 --- a/chrome/browser/extensions/extensions_service_unittest.cc +++ b/chrome/browser/extensions/extensions_service_unittest.cc @@ -638,8 +638,9 @@ TEST_F(ExtensionsServiceTest, CleanupOnStartup) { InitializeInstalledExtensionsService(pref_path, source_install_dir); // Simulate that one of them got partially deleted by clearing its pref. - prefs_->GetMutableDictionary(L"extensions.settings")-> - Remove(L"behllobkkfkfnphdnhnkndlbkcpglgmj", NULL); + DictionaryValue* dict = prefs_->GetMutableDictionary(L"extensions.settings"); + ASSERT_NE(NULL, dict); + dict->Remove(L"behllobkkfkfnphdnhnkndlbkcpglgmj", NULL); service_->Init(); loop_.RunAllPending(); -- cgit v1.1