Index: chrome/browser/extensions/api/signedin_devices/signedin_devices_api.h |
diff --git a/chrome/browser/extensions/api/signedin_devices/signedin_devices_api.h b/chrome/browser/extensions/api/signedin_devices/signedin_devices_api.h |
index 7ebc64f26aae4e19ef4de676292ea68807fc85bf..eb04d3a8dd45158ac9de132e2b83b8226835f682 100644 |
--- a/chrome/browser/extensions/api/signedin_devices/signedin_devices_api.h |
+++ b/chrome/browser/extensions/api/signedin_devices/signedin_devices_api.h |
@@ -9,6 +9,7 @@ |
#include <vector> |
#include "base/memory/scoped_vector.h" |
+#include "chrome/browser/extensions/extension_function.h" |
namespace browser_sync { |
class DeviceInfo; |
@@ -27,15 +28,24 @@ namespace extensions { |
// filled with the list of devices associated with the account signed into this |
// |profile|. This function needs the |extension_id| because the |
// public device ids are set per extension. |
-ScopedVector<browser_sync::DeviceInfo> GetAllSignedInDevices( |
+ScopedVector<browser_sync::DeviceInfo> GetAllSignedinDevices( |
const std::string& extension_id, |
Profile* profile); |
-ScopedVector<browser_sync::DeviceInfo> GetAllSignedInDevices( |
+ScopedVector<browser_sync::DeviceInfo> GetAllSignedinDevices( |
const std::string& extension_id, |
ProfileSyncService* pss, |
ExtensionPrefs* extension_prefs); |
+class SignedinDevicesGetFunction : public SyncExtensionFunction { |
+ protected: |
+ virtual ~SignedinDevicesGetFunction() {} |
+ |
+ // ExtensionFunction: |
+ virtual bool RunImpl() OVERRIDE; |
+ DECLARE_EXTENSION_FUNCTION("SignedinDevices.get", SIGNEDIN_DEVICES_GET) |
+}; |
+ |
} // namespace extensions |
#endif // CHROME_BROWSER_EXTENSIONS_API_SIGNEDIN_DEVICES_SIGNEDIN_DEVICES_API_H__ |