| 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;
|
| }
|
|
|