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

Unified Diff: trunk/src/chrome/browser/extensions/api/gcd_private/gcd_private_api.h

Issue 377383008: Revert 282098 "Add function queryForNewLocalDevices to send quer..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | trunk/src/chrome/browser/extensions/api/gcd_private/gcd_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/extensions/api/gcd_private/gcd_private_api.h
===================================================================
--- trunk/src/chrome/browser/extensions/api/gcd_private/gcd_private_api.h (revision 282216)
+++ trunk/src/chrome/browser/extensions/api/gcd_private/gcd_private_api.h (working copy)
@@ -37,8 +37,6 @@
// BrowserContextKeyedAPI implementation.
static BrowserContextKeyedAPIFactory<GcdPrivateAPI>* GetFactoryInstance();
- bool QueryForDevices();
-
private:
friend class BrowserContextKeyedAPIFactory<GcdPrivateAPI>;
@@ -100,7 +98,7 @@
};
class GcdPrivateQueryForNewLocalDevicesFunction
- : public ChromeSyncExtensionFunction {
+ : public ChromeAsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("gcdPrivate.queryForNewLocalDevices",
GCDPRIVATE_QUERYFORNEWLOCALDEVICES)
@@ -110,8 +108,8 @@
protected:
virtual ~GcdPrivateQueryForNewLocalDevicesFunction();
- // SyncExtensionFunction overrides.
- virtual bool RunSync() OVERRIDE;
+ // AsyncExtensionFunction overrides.
+ virtual bool RunAsync() OVERRIDE;
};
class GcdPrivateStartSetupFunction : public ChromeAsyncExtensionFunction {
« no previous file with comments | « no previous file | trunk/src/chrome/browser/extensions/api/gcd_private/gcd_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698