diff options
author | kalman <kalman@chromium.org> | 2015-03-10 14:29:31 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-10 21:30:55 +0000 |
commit | 9b8643f37bd4d9193a5cb764c757c0581d166e82 (patch) | |
tree | 05467aa871f0a3f83019aedbe77296231f20c55f /extensions/common/extension_api.cc | |
parent | 3d5823f1b9b8220cacd112aaa9f97793e0b8317e (diff) | |
download | chromium_src-9b8643f37bd4d9193a5cb764c757c0581d166e82.zip chromium_src-9b8643f37bd4d9193a5cb764c757c0581d166e82.tar.gz chromium_src-9b8643f37bd4d9193a5cb764c757c0581d166e82.tar.bz2 |
[Extensions] Remove ChromeV8Context and DispatcherDelegate::CreateScriptContext.
ChromeV8Context was a vacuous override, it's just a ScriptContext, and by
replacing instances of ScriptContext the delegate method can be deleted. It
also led me to deleting Feature::CreateAvailability which referenced
ChromeV8Context for some reason.
R=rockot@chromium.org
Review URL: https://codereview.chromium.org/995913002
Cr-Commit-Position: refs/heads/master@{#319976}
Diffstat (limited to 'extensions/common/extension_api.cc')
-rw-r--r-- | extensions/common/extension_api.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/common/extension_api.cc b/extensions/common/extension_api.cc index 01fb890..81ca72ae 100644 --- a/extensions/common/extension_api.cc +++ b/extensions/common/extension_api.cc @@ -290,8 +290,8 @@ Feature::Availability ExtensionAPI::IsAvailable(const std::string& full_name, const GURL& url) { Feature* feature = GetFeatureDependency(full_name); if (!feature) { - return Feature::CreateAvailability(Feature::NOT_PRESENT, - std::string("Unknown feature: ") + full_name); + return Feature::Availability(Feature::NOT_PRESENT, + std::string("Unknown feature: ") + full_name); } return feature->IsAvailableToContext(extension, context, url); } |