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

Unified Diff: Source/testing/runner/MockGrammarCheck.cpp

Issue 105143014: Add base:: to string16 in Source/testing/runner/. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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 | « no previous file | Source/testing/runner/MockSpellCheck.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/testing/runner/MockGrammarCheck.cpp
diff --git a/Source/testing/runner/MockGrammarCheck.cpp b/Source/testing/runner/MockGrammarCheck.cpp
index ae18dece470939628d81d51c55ac60fe36b2dabb..c307353e9f84aa2fccf9c9bc1f93d0f9da6064d5 100644
--- a/Source/testing/runner/MockGrammarCheck.cpp
+++ b/Source/testing/runner/MockGrammarCheck.cpp
@@ -44,7 +44,7 @@ namespace WebTestRunner {
bool MockGrammarCheck::checkGrammarOfString(const WebString& text, vector<WebTextCheckingResult>* results)
{
BLINK_ASSERT(results);
- string16 stringText = text;
+ base::string16 stringText = text;
if (find_if(stringText.begin(), stringText.end(), isASCIIAlpha) == stringText.end())
return true;
@@ -71,8 +71,8 @@ bool MockGrammarCheck::checkGrammarOfString(const WebString& text, vector<WebTex
};
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(grammarErrors); ++i) {
size_t offset = 0;
- string16 error(grammarErrors[i].text, grammarErrors[i].text + strlen(grammarErrors[i].text));
- while ((offset = stringText.find(error, offset)) != string16::npos) {
+ base::string16 error(grammarErrors[i].text, grammarErrors[i].text + strlen(grammarErrors[i].text));
+ while ((offset = stringText.find(error, offset)) != base::string16::npos) {
results->push_back(WebTextCheckingResult(WebTextDecorationTypeGrammar, offset + grammarErrors[i].location, grammarErrors[i].length));
offset += grammarErrors[i].length;
}
« no previous file with comments | « no previous file | Source/testing/runner/MockSpellCheck.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698