| Index: chrome/browser/extensions/api/gcd_private/gcd_private_api.h
|
| diff --git a/chrome/browser/extensions/api/gcd_private/gcd_private_api.h b/chrome/browser/extensions/api/gcd_private/gcd_private_api.h
|
| index 42fa26aba21fe135ca0e537540ed24f2078200c0..bf57f454aef6d7d125426d05bf86c542d9ac7c99 100644
|
| --- a/chrome/browser/extensions/api/gcd_private/gcd_private_api.h
|
| +++ b/chrome/browser/extensions/api/gcd_private/gcd_private_api.h
|
| @@ -37,6 +37,8 @@ class GcdPrivateAPI : public BrowserContextKeyedAPI,
|
| // BrowserContextKeyedAPI implementation.
|
| static BrowserContextKeyedAPIFactory<GcdPrivateAPI>* GetFactoryInstance();
|
|
|
| + bool QueryForDevices();
|
| +
|
| private:
|
| friend class BrowserContextKeyedAPIFactory<GcdPrivateAPI>;
|
|
|
| @@ -98,7 +100,7 @@ class GcdPrivateGetCloudDeviceListFunction
|
| };
|
|
|
| class GcdPrivateQueryForNewLocalDevicesFunction
|
| - : public ChromeAsyncExtensionFunction {
|
| + : public ChromeSyncExtensionFunction {
|
| public:
|
| DECLARE_EXTENSION_FUNCTION("gcdPrivate.queryForNewLocalDevices",
|
| GCDPRIVATE_QUERYFORNEWLOCALDEVICES)
|
| @@ -108,8 +110,8 @@ class GcdPrivateQueryForNewLocalDevicesFunction
|
| protected:
|
| virtual ~GcdPrivateQueryForNewLocalDevicesFunction();
|
|
|
| - // AsyncExtensionFunction overrides.
|
| - virtual bool RunAsync() OVERRIDE;
|
| + // SyncExtensionFunction overrides.
|
| + virtual bool RunSync() OVERRIDE;
|
| };
|
|
|
| class GcdPrivateStartSetupFunction : public ChromeAsyncExtensionFunction {
|
|
|