diff options
author | rockot@chromium.org <rockot@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-19 06:09:17 +0000 |
---|---|---|
committer | rockot@chromium.org <rockot@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-19 06:09:17 +0000 |
commit | 7c82539cd431202668e7ed50737af64506f266e8 (patch) | |
tree | 52d2640e2a076dccd99cd37792b9526fdc9eb5a8 /chrome/browser/extensions/extension_util.cc | |
parent | fcd7ad299b1ec612843418ea47dbbc6367941793 (diff) | |
download | chromium_src-7c82539cd431202668e7ed50737af64506f266e8.zip chromium_src-7c82539cd431202668e7ed50737af64506f266e8.tar.gz chromium_src-7c82539cd431202668e7ed50737af64506f266e8.tar.bz2 |
Remove ExtensionService::extension_prefs()
Callers use ExtensionPrefs::Get instead of depending on
ExtensionService for access. Where appropriate, other
nearby, unnecessary references to ExtensionService have
also been removed.
BUG=341181
TBR=benwells@chromium.org,benjhayden@chromium.org,akalin@chromium.org,pkotwicz@chromium.org,stevenjb@chromium.org,sky@chromium.org,dbeam@chromium.org,finnur@chromium.org
Review URL: https://codereview.chromium.org/156843004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251958 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_util.cc')
-rw-r--r-- | chrome/browser/extensions/extension_util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_util.cc b/chrome/browser/extensions/extension_util.cc index 5d5933f..3104575 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) |