Remove all references to UIThreadExtensionFunction
UIThreadExtensionFunction was merged into ExtensionFunction in
http://crrev.com/c/1718990. This removes the stub
UIThreadExtensionFunction class and renames all the references from
UIThreadExtensionFunction to ExtensionFunction.
This CL was generated with the command:
git grep --name-only UIThreadExtensionFunction | \
xargs sed -i 's/UIThreadExtensionFunction/ExtensionFunction/g'
Bug: 980774
Change-Id: Ie1772044041517b88e9f8a625a2b941913aae9b6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1721876
Reviewed-by: John Abd-El-Malek <[email protected]>
Reviewed-by: Karan Bhatia <[email protected]>
Commit-Queue: Clark DuVall <[email protected]>
Cr-Commit-Position: refs/heads/master@{#682393}
diff --git a/chrome/browser/extensions/extension_api_unittest.h b/chrome/browser/extensions/extension_api_unittest.h
index b4922eb..8ddb90b 100644
--- a/chrome/browser/extensions/extension_api_unittest.h
+++ b/chrome/browser/extensions/extension_api_unittest.h
@@ -17,7 +17,7 @@
class ListValue;
}
-class UIThreadExtensionFunction;
+class ExtensionFunction;
namespace extensions {
@@ -54,29 +54,28 @@
// Return the function result as a base::Value.
std::unique_ptr<base::Value> RunFunctionAndReturnValue(
- UIThreadExtensionFunction* function,
+ ExtensionFunction* function,
const std::string& args);
// Return the function result as a base::DictionaryValue, or NULL.
// This will EXPECT-fail if the result is not a DictionaryValue.
std::unique_ptr<base::DictionaryValue> RunFunctionAndReturnDictionary(
- UIThreadExtensionFunction* function,
+ ExtensionFunction* function,
const std::string& args);
// Return the function result as a base::ListValue, or NULL.
// This will EXPECT-fail if the result is not a ListValue.
std::unique_ptr<base::ListValue> RunFunctionAndReturnList(
- UIThreadExtensionFunction* function,
+ ExtensionFunction* function,
const std::string& args);
// Return an error thrown from the function, if one exists.
// This will EXPECT-fail if any result is returned from the function.
- std::string RunFunctionAndReturnError(
- UIThreadExtensionFunction* function, const std::string& args);
+ std::string RunFunctionAndReturnError(ExtensionFunction* function,
+ const std::string& args);
// Run the function and ignore any result.
- void RunFunction(
- UIThreadExtensionFunction* function, const std::string& args);
+ void RunFunction(ExtensionFunction* function, const std::string& args);
private:
// The Extension used when running API function calls.