Index: chrome/browser/blocked_popup_container.cc |
=================================================================== |
--- chrome/browser/blocked_popup_container.cc (revision 32858) |
+++ chrome/browser/blocked_popup_container.cc (working copy) |
@@ -391,13 +391,13 @@ |
const ListValue* whitelist_pref = |
prefs_->GetList(prefs::kPopupWhitelistedHosts); |
// Careful: The returned value could be NULL if the pref has never been set. |
- if (whitelist_pref != NULL) { |
- for (ListValue::const_iterator i(whitelist_pref->begin()); |
- i != whitelist_pref->end(); ++i) { |
- std::string host; |
- (*i)->GetAsString(&host); |
- whitelist_.insert(host); |
- } |
+ if (whitelist_pref == NULL) |
+ return; |
+ for (ListValue::const_iterator i(whitelist_pref->begin()); |
+ i != whitelist_pref->end(); ++i) { |
+ std::string host; |
+ (*i)->GetAsString(&host); |
+ whitelist_.insert(host); |
} |
} |