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

Unified Diff: content/shell/renderer/test_runner/MockGrammarCheck.cpp

Issue 113653003: Add base:: to straggling string16 in content/. (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 | « no previous file | content/shell/renderer/test_runner/MockSpellCheck.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/MockGrammarCheck.cpp
diff --git a/content/shell/renderer/test_runner/MockGrammarCheck.cpp b/content/shell/renderer/test_runner/MockGrammarCheck.cpp
index 9a27c5e1514173f5fe6ed892cbeb7fb6d0fb19f3..5eaee8befaa7d4b32c0d1b001032372f64272787 100644
--- a/content/shell/renderer/test_runner/MockGrammarCheck.cpp
+++ b/content/shell/renderer/test_runner/MockGrammarCheck.cpp
@@ -19,7 +19,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;
@@ -46,8 +46,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 | content/shell/renderer/test_runner/MockSpellCheck.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698