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

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

Issue 109683007: Pass a Feature* to IsAnyFeatureAvailableToContext instead of a string name. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update extension_api_stub.cc 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.h
diff --git a/chrome/renderer/extensions/chrome_v8_context.h b/chrome/renderer/extensions/chrome_v8_context.h
index 94944f47a687911d4902031b7c2501ce68fd64ef..dcdcc901218137010ab090b4d94693899eccbc29 100644
--- a/chrome/renderer/extensions/chrome_v8_context.h
+++ b/chrome/renderer/extensions/chrome_v8_context.h
@@ -105,10 +105,10 @@ class ChromeV8Context : public RequestSender::Source {
// Returns the availability of the API |api_name|.
Feature::Availability GetAvailability(const std::string& api_name);
- // Returns whether the API |api_name| or any part of the API could be
+ // Returns whether the API |api| or any part of the API could be
// available in this context without taking into account the context's
// extension.
- bool IsAnyFeatureAvailableToContext(const std::string& api_name);
+ bool IsAnyFeatureAvailableToContext(const extensions::Feature& api);
// Returns a string description of the type of context this is.
std::string GetContextTypeDescription();
« no previous file with comments | « chrome/common/extensions/features/base_feature_provider.cc ('k') | chrome/renderer/extensions/chrome_v8_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698