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

Side by Side Diff: chrome/browser/local_discovery/service_discovery_client_mac.mm

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, 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/local_discovery/service_discovery_client_mac.h" 5 #include "chrome/browser/local_discovery/service_discovery_client_mac.h"
6 6
7 #import <arpa/inet.h> 7 #import <arpa/inet.h>
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #import <net/if_dl.h> 9 #import <net/if_dl.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 264
265 ServiceWatcherImplMac::~ServiceWatcherImplMac() {} 265 ServiceWatcherImplMac::~ServiceWatcherImplMac() {}
266 266
267 void ServiceWatcherImplMac::Start() { 267 void ServiceWatcherImplMac::Start() {
268 DCHECK(!started_); 268 DCHECK(!started_);
269 VLOG(1) << "ServiceWatcherImplMac::Start"; 269 VLOG(1) << "ServiceWatcherImplMac::Start";
270 container_->Start(); 270 container_->Start();
271 started_ = true; 271 started_ = true;
272 } 272 }
273 273
274 void ServiceWatcherImplMac::DiscoverNewServices(bool force_update) { 274 void ServiceWatcherImplMac::DiscoverNewServices() {
275 DCHECK(started_); 275 DCHECK(started_);
276 VLOG(1) << "ServiceWatcherImplMac::DiscoverNewServices"; 276 VLOG(1) << "ServiceWatcherImplMac::DiscoverNewServices";
277 container_->DiscoverNewServices(); 277 container_->DiscoverNewServices();
278 } 278 }
279 279
280 void ServiceWatcherImplMac::SetActivelyRefreshServices( 280 void ServiceWatcherImplMac::SetActivelyRefreshServices(
281 bool actively_refresh_services) { 281 bool actively_refresh_services) {
282 DCHECK(started_); 282 DCHECK(started_);
283 VLOG(1) << "ServiceWatcherImplMac::SetActivelyRefreshServices"; 283 VLOG(1) << "ServiceWatcherImplMac::SetActivelyRefreshServices";
284 } 284 }
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 container_->OnResolveUpdate(local_discovery::ServiceResolver::STATUS_SUCCESS); 502 container_->OnResolveUpdate(local_discovery::ServiceResolver::STATUS_SUCCESS);
503 } 503 }
504 504
505 - (void)netService:(NSNetService*)sender 505 - (void)netService:(NSNetService*)sender
506 didNotResolve:(NSDictionary*)errorDict { 506 didNotResolve:(NSDictionary*)errorDict {
507 container_->OnResolveUpdate( 507 container_->OnResolveUpdate(
508 local_discovery::ServiceResolver::STATUS_REQUEST_TIMEOUT); 508 local_discovery::ServiceResolver::STATUS_REQUEST_TIMEOUT);
509 } 509 }
510 510
511 @end 511 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698