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

Unified Diff: chrome/browser/chromeos/extensions/echo_private_api.h

Issue 2298493003: [Extensions] Convert some ChromeSyncExtensionFunctions (Closed)
Patch Set: fix Created 4 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: chrome/browser/chromeos/extensions/echo_private_api.h
diff --git a/chrome/browser/chromeos/extensions/echo_private_api.h b/chrome/browser/chromeos/extensions/echo_private_api.h
index ce1e231d3ce6ec201810be7a526df01ea80781dc..e281720c876f5224313fabc84975e2a1580c1ace 100644
--- a/chrome/browser/chromeos/extensions/echo_private_api.h
+++ b/chrome/browser/chromeos/extensions/echo_private_api.h
@@ -25,16 +25,16 @@ void RegisterPrefs(PrefRegistrySimple* registry);
} // namespace chromeos
class EchoPrivateGetRegistrationCodeFunction
- : public ChromeSyncExtensionFunction {
+ : public UIThreadExtensionFunction {
public:
EchoPrivateGetRegistrationCodeFunction();
protected:
~EchoPrivateGetRegistrationCodeFunction() override;
- bool RunSync() override;
+ ResponseAction Run() override;
private:
- void GetRegistrationCode(const std::string& type);
+ ResponseValue GetRegistrationCode(const std::string& type);
DECLARE_EXTENSION_FUNCTION("echoPrivate.getRegistrationCode",
ECHOPRIVATE_GETREGISTRATIONCODE)
};
@@ -54,26 +54,26 @@ class EchoPrivateGetOobeTimestampFunction
ECHOPRIVATE_GETOOBETIMESTAMP)
};
-class EchoPrivateSetOfferInfoFunction : public ChromeSyncExtensionFunction {
+class EchoPrivateSetOfferInfoFunction : public UIThreadExtensionFunction {
public:
EchoPrivateSetOfferInfoFunction();
protected:
~EchoPrivateSetOfferInfoFunction() override;
- bool RunSync() override;
+ ResponseAction Run() override;
private:
DECLARE_EXTENSION_FUNCTION("echoPrivate.setOfferInfo",
ECHOPRIVATE_SETOFFERINFO)
};
-class EchoPrivateGetOfferInfoFunction : public ChromeSyncExtensionFunction {
+class EchoPrivateGetOfferInfoFunction : public UIThreadExtensionFunction {
public:
EchoPrivateGetOfferInfoFunction();
protected:
~EchoPrivateGetOfferInfoFunction() override;
- bool RunSync() override;
+ ResponseAction Run() override;
private:
DECLARE_EXTENSION_FUNCTION("echoPrivate.getOfferInfo",
« no previous file with comments | « chrome/browser/accessibility/accessibility_extension_api.cc ('k') | chrome/browser/chromeos/extensions/echo_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698