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

Unified Diff: chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc

Issue 2963613002: Remove the (broken and unneeded) 'force_update' option from ServiceWatcher::DiscoverNewDevices. (Closed)
Patch Set: Fixup yet another mac site revealed by CQ Created 3 years, 6 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: chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
diff --git a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
index c924a72f36c277058c8559ec3cf04d55ca00c5c6..420efe932c369a0e1941571fceae07863f75dfff 100644
--- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
+++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h"
+#include <memory>
#include <set>
#include <utility>
@@ -173,7 +174,7 @@ void LocalDiscoveryUIHandler::HandleStart(const base::ListValue* args) {
}
privet_lister_->Start();
- privet_lister_->DiscoverNewDevices(false);
+ privet_lister_->DiscoverNewDevices();
#if defined(CLOUD_PRINT_CONNECTOR_UI_AVAILABLE)
StartCloudPrintConnector();
@@ -380,7 +381,7 @@ void LocalDiscoveryUIHandler::DeviceRemoved(const std::string& name) {
void LocalDiscoveryUIHandler::DeviceCacheFlushed() {
web_ui()->CallJavascriptFunctionUnsafe(
"local_discovery.onDeviceCacheFlushed");
- privet_lister_->DiscoverNewDevices(false);
+ privet_lister_->DiscoverNewDevices();
}
void LocalDiscoveryUIHandler::OnDeviceListReady(
@@ -416,7 +417,7 @@ void LocalDiscoveryUIHandler::SendRegisterDone(
const std::string& service_name) {
// HACK(noamsml): Generate network traffic so the Windows firewall doesn't
// block the printer's announcement.
- privet_lister_->DiscoverNewDevices(false);
+ privet_lister_->DiscoverNewDevices();
DeviceDescriptionMap::iterator it = device_descriptions_.find(service_name);

Powered by Google App Engine
This is Rietveld 408576698