Index: chrome/browser/extensions/api/system_private/system_private_api.h |
diff --git a/chrome/browser/extensions/api/system_private/system_private_api.h b/chrome/browser/extensions/api/system_private/system_private_api.h |
index 06194a850377d18e59dc4885bcec12aa5ce51289..6328d8088b4f5fed51af03a9b844d2c1dde93ebc 100644 |
--- a/chrome/browser/extensions/api/system_private/system_private_api.h |
+++ b/chrome/browser/extensions/api/system_private/system_private_api.h |
@@ -38,6 +38,18 @@ class SystemPrivateGetUpdateStatusFunction : public SyncExtensionFunction { |
virtual bool RunImpl() OVERRIDE; |
}; |
+// API function which returns the Google API key. |
+class SystemPrivateGetApiKeyFunction : public SyncExtensionFunction { |
+ public: |
+ DECLARE_EXTENSION_FUNCTION("systemPrivate.getApiKey", SYSTEMPRIVATE_GETAPIKEY) |
+ |
+ protected: |
+ virtual ~SystemPrivateGetApiKeyFunction() {} |
+ |
+ // ExtensionFunction: |
+ virtual bool RunImpl() OVERRIDE; |
+}; |
+ |
// Dispatches systemPrivate.onBrightnessChanged event for extensions. |
void DispatchBrightnessChangedEvent(int brightness, bool user_initiated); |