Index: chrome/browser/extensions/extension_function_dispatcher.cc |
diff --git a/chrome/browser/extensions/extension_function_dispatcher.cc b/chrome/browser/extensions/extension_function_dispatcher.cc |
index 0a95858c247354b647c66cb0b9ac294524ebbb4b..e2a83e75dc94e541c622aa547f1db4d1ce8daec3 100644 |
--- a/chrome/browser/extensions/extension_function_dispatcher.cc |
+++ b/chrome/browser/extensions/extension_function_dispatcher.cc |
@@ -251,7 +251,7 @@ ExtensionFunction* ExtensionFunctionDispatcher::CreateExtensionFunction( |
return NULL; |
} |
- if (ExtensionAPI::GetInstance()->IsPrivileged(params.name) && |
+ if (ExtensionAPI::GetSharedInstance()->IsPrivileged(params.name) && |
!process_map.Contains(extension->id(), requesting_process_id)) { |
LOG(ERROR) << "Extension API called from incorrect process " |
<< requesting_process_id |