Index: chrome/common/extensions/extension_messages.cc |
diff --git a/chrome/common/extensions/extension_messages.cc b/chrome/common/extensions/extension_messages.cc |
index 44b475878c1421aca7da13dff846b3a9bb952cc6..e32b48dee7cb60a4fe55df571d6131a54540669c 100644 |
--- a/chrome/common/extensions/extension_messages.cc |
+++ b/chrome/common/extensions/extension_messages.cc |
@@ -42,9 +42,9 @@ scoped_refptr<Extension> ExtensionMsg_Loaded_Params::ConvertToExtension( |
std::string* error) const { |
scoped_refptr<Extension> extension = |
Extension::Create(path, location, *manifest, creation_flags, error); |
- if (extension) { |
+ if (extension.get()) { |
extensions::PermissionsData::SetActivePermissions( |
- extension, |
+ extension.get(), |
new PermissionSet(apis, explicit_hosts, scriptable_hosts)); |
} |
return extension; |