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

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: 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 f05b1e7b3d1812dd8e2298c96239627f26d1ec97..d5678585e70ab89843046a11ee3e66d81245f9bd 100644
--- a/chrome/renderer/extensions/extension_dispatcher.cc
+++ b/chrome/renderer/extensions/extension_dispatcher.cc
@@ -543,7 +543,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) {

Powered by Google App Engine
This is Rietveld 408576698