diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-11 23:16:24 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-11 23:16:24 +0000 |
commit | 1e1229a168974388ff8cda5e0e066b5978ec227f (patch) | |
tree | c9ea94374590415da82c09625fcf7dbdbf5826a6 /remoting | |
parent | 216f48465ec76e97c83f375bc3e0bed1c0344caa (diff) | |
download | chromium_src-1e1229a168974388ff8cda5e0e066b5978ec227f.zip chromium_src-1e1229a168974388ff8cda5e0e066b5978ec227f.tar.gz chromium_src-1e1229a168974388ff8cda5e0e066b5978ec227f.tar.bz2 |
Remove ContainsOnlyWhitespace from string_util and CollapseWhitespace into to the base namespace
This function is only used in a few places and can trivially be implemented by passing the whitespace constant to the existing ContainsOnlyChars function.
This changes the ContainsOnlyChars function signature to take a StringPiece to avoid a copy from a literal to a standard string in the above-mentioned use-base.
Re-implement ContainsOnlyChars to use the find_first_not_of function on StringPiece.
BUG=
R=viettrungluu@chromium.org
Review URL: https://codereview.chromium.org/183683024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256354 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/host/setup/daemon_controller_delegate_linux.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/remoting/host/setup/daemon_controller_delegate_linux.cc b/remoting/host/setup/daemon_controller_delegate_linux.cc index d925369..96f0dccb 100644 --- a/remoting/host/setup/daemon_controller_delegate_linux.cc +++ b/remoting/host/setup/daemon_controller_delegate_linux.cc @@ -291,7 +291,7 @@ std::string DaemonControllerDelegateLinux::GetVersion() { } base::TrimWhitespaceASCII(version, base::TRIM_ALL, &version); - if (!ContainsOnlyChars(version, "0123456789.")) { + if (!base::ContainsOnlyChars(version, "0123456789.")) { LOG(ERROR) << "Received invalid host version number: " << version; return std::string(); } |