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

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

Issue 109683007: Pass a Feature* to IsAnyFeatureAvailableToContext instead of a string name. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix dumb compilation error Created 7 years 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/chrome_v8_context.cc
diff --git a/chrome/renderer/extensions/chrome_v8_context.cc b/chrome/renderer/extensions/chrome_v8_context.cc
index bdeebd18c1de4633d7cd655c7aab5772cc41a47b..824ee7eb9e3c79a08945d4c6e9446b3a23b47d71 100644
--- a/chrome/renderer/extensions/chrome_v8_context.cc
+++ b/chrome/renderer/extensions/chrome_v8_context.cc
@@ -95,10 +95,9 @@ v8::Local<v8::Value> ChromeV8Context::CallFunction(
function, global, argc, argv)));
}
-bool ChromeV8Context::IsAnyFeatureAvailableToContext(
- const std::string& api_name) {
+bool ChromeV8Context::IsAnyFeatureAvailableToContext(const Feature& api) {
return ExtensionAPI::GetSharedInstance()->IsAnyFeatureAvailableToContext(
- api_name,
+ api,
extension_.get(),
context_type_,
UserScriptSlave::GetDataSourceURLForFrame(web_frame_));

Powered by Google App Engine
This is Rietveld 408576698