diff options
author | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-11 02:22:41 +0000 |
---|---|---|
committer | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-11 02:22:41 +0000 |
commit | 60b357fb265ade3ddb136352cf6e753eeaded48e (patch) | |
tree | 0a775cd9b78a2b58737a13cf5418a82ad45e95c6 | |
parent | fee0a788214ce93080cd18583e42b085c8b544bf (diff) | |
download | chromium_src-60b357fb265ade3ddb136352cf6e753eeaded48e.zip chromium_src-60b357fb265ade3ddb136352cf6e753eeaded48e.tar.gz chromium_src-60b357fb265ade3ddb136352cf6e753eeaded48e.tar.bz2 |
Replace '.' with '_' in service name.
Review URL: https://codereview.chromium.org/159343002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250288 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | cloud_print/gcp20/prototype/printer.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cloud_print/gcp20/prototype/printer.cc b/cloud_print/gcp20/prototype/printer.cc index e5828261..4765198 100644 --- a/cloud_print/gcp20/prototype/printer.cc +++ b/cloud_print/gcp20/prototype/printer.cc @@ -4,6 +4,7 @@ #include "cloud_print/gcp20/prototype/printer.h" +#include <algorithm> #include <limits.h> #include <stdio.h> #include <string> @@ -844,6 +845,8 @@ bool Printer::StartDnsServer() { std::string service_name_prefix = command_line_reader::ReadServiceNamePrefix(net::IPAddressToString(ip) + kServiceNamePrefixDefault); + std::replace(service_name_prefix .begin(), service_name_prefix .end(), + '.', '_'); std::string service_domain_name = command_line_reader::ReadDomainName( |