diff options
Diffstat (limited to 'chrome/browser/extensions/api/module/module.cc')
-rw-r--r-- | chrome/browser/extensions/api/module/module.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/chrome/browser/extensions/api/module/module.cc b/chrome/browser/extensions/api/module/module.cc index 31e849c..8847359 100644 --- a/chrome/browser/extensions/api/module/module.cc +++ b/chrome/browser/extensions/api/module/module.cc @@ -39,16 +39,14 @@ bool ExtensionSetUpdateUrlDataFunction::RunImpl() { std::string data; EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &data)); - ExtensionPrefs::Get(profile())->UpdateExtensionPref( - extension_id(), - extension::kUpdateURLData, - new base::StringValue(data)); + ExtensionPrefs::Get(GetProfile())->UpdateExtensionPref( + extension_id(), extension::kUpdateURLData, new base::StringValue(data)); return true; } bool ExtensionIsAllowedIncognitoAccessFunction::RunImpl() { ExtensionService* ext_service = - ExtensionSystem::Get(profile())->extension_service(); + ExtensionSystem::Get(GetProfile())->extension_service(); const Extension* extension = GetExtension(); SetResult(new base::FundamentalValue( @@ -58,7 +56,7 @@ bool ExtensionIsAllowedIncognitoAccessFunction::RunImpl() { bool ExtensionIsAllowedFileSchemeAccessFunction::RunImpl() { ExtensionService* ext_service = - ExtensionSystem::Get(profile())->extension_service(); + ExtensionSystem::Get(GetProfile())->extension_service(); const Extension* extension = GetExtension(); SetResult(new base::FundamentalValue( |