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

Unified Diff: chrome/browser/drive/fake_drive_service.cc

Issue 102843002: Move RemoveChars, ReplaceChars, TrimString, and TruncateUTF8ToByteSize to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/drive/fake_drive_service.cc
diff --git a/chrome/browser/drive/fake_drive_service.cc b/chrome/browser/drive/fake_drive_service.cc
index 0fe40e12fb07b65574d44a550a34759795328b06..83b0de211123533f408b1057a2c9067cf97fd82f 100644
--- a/chrome/browser/drive/fake_drive_service.cc
+++ b/chrome/browser/drive/fake_drive_service.cc
@@ -83,7 +83,7 @@ bool EntryMatchWithQuery(const ResourceEntry& entry,
std::string key, value;
const std::string& token = tokenizer.token();
if (token.find(':') == std::string::npos) {
- TrimString(token, "\"'", &value);
+ base::TrimString(token, "\"'", &value);
} else {
base::StringTokenizer key_value(token, ":");
key_value.set_quote_chars("\"'");
@@ -92,7 +92,7 @@ bool EntryMatchWithQuery(const ResourceEntry& entry,
key = key_value.token();
if (!key_value.GetNext())
return false;
- TrimString(key_value.token(), "\"'", &value);
+ base::TrimString(key_value.token(), "\"'", &value);
}
// TODO(peria): Deal with other attributes than title.

Powered by Google App Engine
This is Rietveld 408576698