Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: chrome/renderer/extensions/extension_dispatcher.cc

Issue 9950046: Implement FeatureProvider for ExtensionAPI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: hate hate hate Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/extensions/extension_dispatcher.cc
diff --git a/chrome/renderer/extensions/extension_dispatcher.cc b/chrome/renderer/extensions/extension_dispatcher.cc
index 3e8af8d95b04002400dbddaefedffc14f9cbcfb8..603cd69dccd12dcdc6962a7a036f537db57b4c2f 100644
--- a/chrome/renderer/extensions/extension_dispatcher.cc
+++ b/chrome/renderer/extensions/extension_dispatcher.cc
@@ -576,7 +576,7 @@ void ExtensionDispatcher::DidCreateScriptContext(
// correct APIs, however, until it doesn't have a 2MB overhead we can't
// load it in every process.
scoped_ptr<std::set<std::string> > apis =
- ExtensionAPI::GetInstance()->GetAPIsForContext(
+ ExtensionAPI::GetSharedInstance()->GetAPIsForContext(
context_type, extension, url_info.url());
for (std::set<std::string>::iterator i = apis->begin(); i != apis->end();
++i) {
@@ -834,7 +834,7 @@ bool ExtensionDispatcher::CheckCurrentContextAccessToExtensionAPI(
}
if (!IsExtensionActive(extension->id()) &&
- ExtensionAPI::GetInstance()->IsPrivileged(function_name)) {
+ ExtensionAPI::GetSharedInstance()->IsPrivileged(function_name)) {
static const char kMessage[] =
"%s can only be used in an extension process.";
std::string error_msg = base::StringPrintf(kMessage, function_name.c_str());
« no previous file with comments | « chrome/common/extensions/simple_feature_provider_unittest.cc ('k') | chrome/renderer/extensions/schema_generated_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698