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

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: Rebase 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
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..e352dab76a1589eb42cc2f44784f8b4f0d12c4fd 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 AllowRedeemOffersFunction : public AsyncExtensionFunction {
+ public:
+ AllowRedeemOffersFunction();
+
+ protected:
+ virtual ~AllowRedeemOffersFunction();
+ virtual bool RunImpl() OVERRIDE;
+
+ private:
+ void AllowRedeemOffersCallback();
+ DECLARE_EXTENSION_FUNCTION("echoPrivate.allowRedeemOffers",
+ ECHOPRIVATE_ALLOWREDEEMOFFERS)
+};
#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_ECHO_PRIVATE_API_H_

Powered by Google App Engine
This is Rietveld 408576698