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 33f91ba06ebb8268f3f2df0b66acba8e7f5ffddf..ddb820bd1ff5ab6a12edaabecb76adbe10b8519c 100644 |
--- a/chrome/browser/extensions/api/system_private/system_private_api.h |
+++ b/chrome/browser/extensions/api/system_private/system_private_api.h |
@@ -39,6 +39,18 @@ class SystemPrivateGetUpdateStatusFunction |
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); |