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

Unified Diff: chrome/browser/protector/protected_prefs_watcher.cc

Issue 10854009: Extension white and force lists (set by policy) should have priority over auto-updated Google black… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed NULL instead of false Created 8 years, 4 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
Index: chrome/browser/protector/protected_prefs_watcher.cc
diff --git a/chrome/browser/protector/protected_prefs_watcher.cc b/chrome/browser/protector/protected_prefs_watcher.cc
index 7c032cee428a3b419b5ed5763c1ea5fa089083d4..269635ce6d150136bc35e535289976717bcf639e 100644
--- a/chrome/browser/protector/protected_prefs_watcher.cc
+++ b/chrome/browser/protector/protected_prefs_watcher.cc
@@ -200,17 +200,8 @@ void ProtectedPrefsWatcher::EnsurePrefsMigration() {
}
bool ProtectedPrefsWatcher::UpdateCachedPrefs() {
- // Direct access to the extensions prefs is required becase ExtensionService
Ivan Korotkov 2012/08/07 13:26:40 Did something change in the initialization order?
qfel 2012/08/07 13:43:51 I guess I should have left the part about being un
- // may not yet have been initialized.
- const base::DictionaryValue* extension_prefs;
- const base::Value* extension_prefs_value =
- profile_->GetPrefs()->GetUserPrefValue(ExtensionPrefs::kExtensionsPref);
- if (!extension_prefs_value ||
- !extension_prefs_value->GetAsDictionary(&extension_prefs)) {
- return false;
- }
ExtensionPrefs::ExtensionIdSet extension_ids =
- ExtensionPrefs::GetExtensionsFrom(extension_prefs);
+ ExtensionPrefs::GetExtensionsFrom(profile_->GetPrefs());
if (extension_ids == cached_extension_ids_)
return false;
cached_extension_ids_.swap(extension_ids);

Powered by Google App Engine
This is Rietveld 408576698