Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(669)

Unified Diff: chrome/browser/extensions/extension_prefs.cc

Issue 6271025: Add Null check for kExtensionsPref dictionary... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_prefs.cc
===================================================================
--- chrome/browser/extensions/extension_prefs.cc (revision 72910)
+++ chrome/browser/extensions/extension_prefs.cc (working copy)
@@ -1144,6 +1144,8 @@
CHECK(out);
const DictionaryValue* extensions =
pref_service()->GetDictionary(kExtensionsPref);
+ if (!extensions)
+ return;
Mattias Nissler (ping if slow) 2011/01/28 09:27:03 Hm. I'd say that the problem is really with the Pr
Aaron Boodman 2011/01/29 19:24:04 cpu, did you find a case of this actually returnin
for (DictionaryValue::key_iterator ext_id = extensions->begin_keys();
ext_id != extensions->end_keys(); ++ext_id) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698