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

Unified Diff: chrome/test/perf/generate_profile.cc

Issue 94013004: Add base:: to string16s in chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try again 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/test/perf/startup_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/perf/generate_profile.cc
diff --git a/chrome/test/perf/generate_profile.cc b/chrome/test/perf/generate_profile.cc
index 0e38251f124c55ef2a1c3b174cec76befcc80bd5..44c72adcc8cada77c4ef5a73b4cd6edca89ac47b 100644
--- a/chrome/test/perf/generate_profile.cc
+++ b/chrome/test/perf/generate_profile.cc
@@ -55,14 +55,14 @@ inline int RandomInt(int min, int max) {
}
// Return a string of |count| lowercase random characters.
-string16 RandomChars(int count) {
- string16 str;
+base::string16 RandomChars(int count) {
+ base::string16 str;
for (int i = 0; i < count; ++i)
str += L'a' + rand() % 26;
return str;
}
-string16 RandomWord() {
+base::string16 RandomWord() {
// TODO(evanm): should we instead use the markov chain based
// version of this that I already wrote?
@@ -78,8 +78,8 @@ string16 RandomWord() {
}
// Return a string of |count| random words.
-string16 RandomWords(int count) {
- string16 str;
+base::string16 RandomWords(int count) {
+ base::string16 str;
for (int i = 0; i < count; ++i) {
if (!str.empty())
str += L' ';
@@ -95,7 +95,7 @@ GURL ConstructRandomURL() {
}
// Return a random page title-looking string.
-string16 ConstructRandomTitle() {
+base::string16 ConstructRandomTitle() {
return RandomWords(RandomInt(3, 15));
}
« no previous file with comments | « chrome/test/chromedriver/util.cc ('k') | chrome/test/perf/startup_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698