| Index: cloud_print/gcp20/prototype/dns_sd_server.cc
|
| diff --git a/cloud_print/gcp20/prototype/dns_sd_server.cc b/cloud_print/gcp20/prototype/dns_sd_server.cc
|
| index 23280cb127cf7384c515dabf14cdcf2d74f87746..a43f9f0851483fa870acf9923a963bf5a9de6955 100644
|
| --- a/cloud_print/gcp20/prototype/dns_sd_server.cc
|
| +++ b/cloud_print/gcp20/prototype/dns_sd_server.cc
|
| @@ -98,7 +98,8 @@ void DnsSdServer::UpdateMetadata(const std::vector<std::string>& metadata) {
|
| // then send it now.
|
|
|
| uint32 current_ttl = GetCurrentTLL();
|
| - if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kNoAnnouncement)) {
|
| + if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kNoAnnouncement)) {
|
| DnsResponseBuilder builder(current_ttl);
|
|
|
| builder.AppendTxt(serv_params_.service_name_, current_ttl, metadata_, true);
|
| @@ -183,8 +184,8 @@ void DnsSdServer::ProcessMessage(int len, net::IOBufferWithSize* buf) {
|
|
|
| VLOG(1) << "Current TTL for respond: " << current_ttl;
|
|
|
| - bool unicast_respond =
|
| - CommandLine::ForCurrentProcess()->HasSwitch(switches::kUnicastRespond);
|
| + bool unicast_respond = base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kUnicastRespond);
|
| socket_->SendTo(buffer.get(), buffer.get()->size(),
|
| unicast_respond ? recv_address_ : multicast_address_,
|
| base::Bind(&DoNothingAfterSendToSocket));
|
| @@ -205,7 +206,7 @@ void DnsSdServer::ProccessQuery(uint32 current_ttl, const DnsQueryRecord& query,
|
| builder->AppendPtr(query.qname, current_ttl,
|
| serv_params_.service_name_, true);
|
|
|
| - if (CommandLine::ForCurrentProcess()->HasSwitch(
|
| + if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| switches::kExtendedResponce)) {
|
| builder->AppendSrv(serv_params_.service_name_, current_ttl,
|
| kSrvPriority, kSrvWeight, serv_params_.http_port_,
|
| @@ -280,7 +281,8 @@ void DnsSdServer::OnDatagramReceived() {
|
| }
|
|
|
| void DnsSdServer::SendAnnouncement(uint32 ttl) {
|
| - if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kNoAnnouncement)) {
|
| + if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kNoAnnouncement)) {
|
| DnsResponseBuilder builder(ttl);
|
|
|
| builder.AppendPtr(serv_params_.service_type_, ttl,
|
|
|