Index: chrome/browser/extensions/extension_util.cc |
diff --git a/chrome/browser/extensions/extension_util.cc b/chrome/browser/extensions/extension_util.cc |
index 5d5933f86d961c01369cbc5d3664a37d9716e2fe..3104575732214f49a58525b070756eb50f46821a 100644 |
--- a/chrome/browser/extensions/extension_util.cc |
+++ b/chrome/browser/extensions/extension_util.cc |
@@ -63,7 +63,7 @@ void SetIsIncognitoEnabled(const std::string& extension_id, |
} |
} |
- ExtensionPrefs* extension_prefs = service->extension_prefs(); |
+ ExtensionPrefs* extension_prefs = ExtensionPrefs::Get(service->profile()); |
// Broadcast unloaded and loaded events to update browser state. Only bother |
// if the value changed and the extension is actually enabled, since there is |
// no UI otherwise. |
@@ -129,7 +129,7 @@ void SetAllowFileAccess(const std::string& extension_id, |
if (allow == AllowFileAccess(extension_id, context)) |
return; |
- service->extension_prefs()->SetAllowFileAccess(extension_id, allow); |
+ ExtensionPrefs::Get(context)->SetAllowFileAccess(extension_id, allow); |
bool extension_is_enabled = service->extensions()->Contains(extension_id); |
if (extension_is_enabled) |