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

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

Issue 12147004: Disable/enable echo for enterprise device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add the missing SendResponse call to the async extension method. Created 7 years, 10 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
« no previous file with comments | « chrome/app/policy/policy_templates.json ('k') | chrome/browser/chromeos/extensions/echo_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8e813992e676cdbacabe45f7d9512701287e19ac..c75c5e47dbea0398d4308e1d8f8fa35a6dc00310 100644
--- a/chrome/browser/chromeos/extensions/echo_private_api.h
+++ b/chrome/browser/chromeos/extensions/echo_private_api.h
@@ -8,7 +8,7 @@
#include "base/compiler_specific.h"
#include "chrome/browser/extensions/extension_function.h"
-class GetRegistrationCodeFunction : public SyncExtensionFunction {
+class GetRegistrationCodeFunction : public AsyncExtensionFunction {
public:
GetRegistrationCodeFunction();
@@ -17,6 +17,7 @@ class GetRegistrationCodeFunction : public SyncExtensionFunction {
virtual bool RunImpl() OVERRIDE;
private:
+ void GetRegistrationCode(const std::string& type);
DECLARE_EXTENSION_FUNCTION("echoPrivate.getRegistrationCode",
ECHOPRIVATE_GETREGISTRATIONCODE)
};
@@ -34,4 +35,18 @@ class GetOobeTimestampFunction : public AsyncExtensionFunction {
DECLARE_EXTENSION_FUNCTION("echoPrivate.getOobeTimestamp",
ECHOPRIVATE_GETOOBETIMESTAMP)
};
+
+class CheckAllowRedeemOffersFunction : public AsyncExtensionFunction {
+ public:
+ CheckAllowRedeemOffersFunction();
+
+ protected:
+ virtual ~CheckAllowRedeemOffersFunction();
+ virtual bool RunImpl() OVERRIDE;
+
+ private:
+ void CheckAllowRedeemOffers();
+ DECLARE_EXTENSION_FUNCTION("echoPrivate.checkAllowRedeemOffers",
+ ECHOPRIVATE_CHECKALLOWREDEEMOFFERS)
+};
#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_ECHO_PRIVATE_API_H_
« no previous file with comments | « chrome/app/policy/policy_templates.json ('k') | chrome/browser/chromeos/extensions/echo_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698