summaryrefslogtreecommitdiffstats
path: root/rlz
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-03 19:05:31 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-03 19:05:31 +0000
commit8af69c6c00a7a432710171d16b37abe77f18d51c (patch)
tree4ee0b9d30bc47eab2ee1cc4cbc1e9c16916cd426 /rlz
parentd283bc0f818820a4344d170b1e917840310a7742 (diff)
downloadchromium_src-8af69c6c00a7a432710171d16b37abe77f18d51c.zip
chromium_src-8af69c6c00a7a432710171d16b37abe77f18d51c.tar.gz
chromium_src-8af69c6c00a7a432710171d16b37abe77f18d51c.tar.bz2
Move TrimWhitespace to the base namespace.
R=viettrungluu@chromium.org, viettrungluu Review URL: https://codereview.chromium.org/183853011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254521 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'rlz')
-rw-r--r--rlz/lib/rlz_lib.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/rlz/lib/rlz_lib.cc b/rlz/lib/rlz_lib.cc
index b204fe9..39bec27 100644
--- a/rlz/lib/rlz_lib.cc
+++ b/rlz/lib/rlz_lib.cc
@@ -103,7 +103,7 @@ void GetEventsFromResponseString(
std::vector<ReturnedEvent>* event_array) {
// Get the string of events.
std::string events = response_line.substr(field_header.size());
- TrimWhitespaceASCII(events, TRIM_LEADING, &events);
+ base::TrimWhitespaceASCII(events, base::TRIM_LEADING, &events);
int events_length = events.find_first_of("\r\n ");
if (events_length < 0)
@@ -438,7 +438,7 @@ bool IsPingResponseValid(const char* response, int* checksum_idx) {
int checksum_begin = checksum_index + checksum_param.size();
std::string checksum = response_string.substr(checksum_begin,
checksum_end - checksum_begin + 1);
- TrimWhitespaceASCII(checksum, TRIM_ALL, &checksum);
+ base::TrimWhitespaceASCII(checksum, base::TRIM_ALL, &checksum);
if (checksum_idx)
*checksum_idx = checksum_index;
@@ -549,7 +549,7 @@ bool ParsePingResponse(Product product, const char* response) {
// Get the new RLZ.
std::string rlz_value(response_line.substr(separator_index + 2));
- TrimWhitespaceASCII(rlz_value, TRIM_LEADING, &rlz_value);
+ base::TrimWhitespaceASCII(rlz_value, base::TRIM_LEADING, &rlz_value);
size_t rlz_length = rlz_value.find_first_of("\r\n ");
if (rlz_length == std::string::npos)