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

Unified Diff: extensions/renderer/extension_injection_host.cc

Issue 1293673002: Create thread-safe RendererExtensionRegistry from ExtensionSet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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: extensions/renderer/extension_injection_host.cc
diff --git a/extensions/renderer/extension_injection_host.cc b/extensions/renderer/extension_injection_host.cc
index 16b0831b6e2f4bd72537678c6d324fd450ff0ced..32e83991f32824fc86a4092e816fbf597fe1709a 100644
--- a/extensions/renderer/extension_injection_host.cc
+++ b/extensions/renderer/extension_injection_host.cc
@@ -6,8 +6,8 @@
#include "content/public/renderer/render_frame.h"
#include "extensions/common/constants.h"
-#include "extensions/common/extension_set.h"
#include "extensions/common/manifest_handlers/csp_info.h"
+#include "extensions/renderer/renderer_extension_registry.h"
#include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
#include "third_party/WebKit/public/web/WebLocalFrame.h"
@@ -24,9 +24,9 @@ ExtensionInjectionHost::~ExtensionInjectionHost() {
// static
scoped_ptr<const InjectionHost> ExtensionInjectionHost::Create(
- const std::string& extension_id,
- const ExtensionSet* extensions) {
- const Extension* extension = extensions->GetByID(extension_id);
+ const std::string& extension_id) {
+ const Extension* extension =
+ RendererExtensionRegistry::Get()->GetByID(extension_id);
if (!extension)
return scoped_ptr<const ExtensionInjectionHost>();
return scoped_ptr<const ExtensionInjectionHost>(

Powered by Google App Engine
This is Rietveld 408576698