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

Unified Diff: src/common/chromeos/string.h

Issue 460001: Clean up to move NewStringCopy from util to chromoes/string. (Closed)
Patch Set: Removed pw file, changed include format Created 11 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 | « src/common/SConstruct ('k') | src/common/chromeos/string.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/common/chromeos/string.h
diff --git a/src/common/chromeos/string.h b/src/common/chromeos/string.h
index 9c1394a068d91c0d6db6cad248df10da65ee3282..be330d2009610065dcbd2d3aa611eb5a26601484 100644
--- a/src/common/chromeos/string.h
+++ b/src/common/chromeos/string.h
@@ -16,6 +16,10 @@ void SplitStringUsing(const std::string& str,
const std::string& delim,
std::vector<std::string>* parts);
+// Copies the string. Use delete (not delete [] or free) to release the returned
+// string.
+char* NewStringCopy(const char* x);
+
} // namespace chromeos
#endif /* CHROMEOS_STRING_H_ */
« no previous file with comments | « src/common/SConstruct ('k') | src/common/chromeos/string.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698