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

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

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
Index: trunk/src/chrome/browser/extensions/api/gcd_private/gcd_private_api.cc
===================================================================
--- trunk/src/chrome/browser/extensions/api/gcd_private/gcd_private_api.cc (revision 282216)
+++ trunk/src/chrome/browser/extensions/api/gcd_private/gcd_private_api.cc (working copy)
@@ -154,15 +154,6 @@
known_devices_.clear();
}
-bool GcdPrivateAPI::QueryForDevices() {
- if (!privet_device_lister_)
- return false;
-
- privet_device_lister_->DiscoverNewDevices(true);
-
- return true;
-}
-
// static
void GcdPrivateAPI::SetGCDApiFlowFactoryForTests(
GCDApiFlowFactoryForTests* factory) {
@@ -244,29 +235,6 @@
Release();
}
-GcdPrivateQueryForNewLocalDevicesFunction::
- GcdPrivateQueryForNewLocalDevicesFunction() {
-}
-
-GcdPrivateQueryForNewLocalDevicesFunction::
- ~GcdPrivateQueryForNewLocalDevicesFunction() {
-}
-
-bool GcdPrivateQueryForNewLocalDevicesFunction::RunSync() {
- GcdPrivateAPI* gcd_api =
- BrowserContextKeyedAPIFactory<GcdPrivateAPI>::Get(GetProfile());
-
- if (!gcd_api)
- return false;
-
- if (!gcd_api->QueryForDevices()) {
- error_ = "You must first subscribe to onDeviceStateChanged notifications";
- return false;
- }
-
- return true;
-}
-
GcdPrivateStartSetupFunction::GcdPrivateStartSetupFunction() {
}

Powered by Google App Engine
This is Rietveld 408576698