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

Unified Diff: chrome/test/ppapi/ppapi_test.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
« no previous file with comments | « chrome/test/chromedriver/util.cc ('k') | chrome/utility/importer/bookmark_html_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ppapi/ppapi_test.cc
diff --git a/chrome/test/ppapi/ppapi_test.cc b/chrome/test/ppapi/ppapi_test.cc
index a33e45cb5208a62d806d7c16ac003b721b38f43d..46d282c22792d0745e128f4d4eb2e9f2a4419559 100644
--- a/chrome/test/ppapi/ppapi_test.cc
+++ b/chrome/test/ppapi/ppapi_test.cc
@@ -49,14 +49,14 @@ PPAPITestMessageHandler::PPAPITestMessageHandler() {
TestMessageHandler::MessageResponse PPAPITestMessageHandler::HandleMessage(
const std::string& json) {
- std::string trimmed;
- TrimString(json, "\"", &trimmed);
- if (trimmed == "...") {
- return CONTINUE;
- } else {
- message_ = trimmed;
- return DONE;
- }
+ std::string trimmed;
+ base::TrimString(json, "\"", &trimmed);
+ if (trimmed == "...") {
+ return CONTINUE;
+ } else {
viettrungluu 2013/12/03 21:13:44 If you're going to do a drive-by reindentation, yo
+ message_ = trimmed;
+ return DONE;
+ }
}
void PPAPITestMessageHandler::Reset() {
« no previous file with comments | « chrome/test/chromedriver/util.cc ('k') | chrome/utility/importer/bookmark_html_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698