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

Unified Diff: components/test_runner/mock_grammar_check.cc

Issue 2648433008: Use explicit WebString conversions in LayoutTest related files (Closed)
Patch Set: . Created 3 years, 11 months 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 | components/test_runner/mock_spell_check.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/mock_grammar_check.cc
diff --git a/components/test_runner/mock_grammar_check.cc b/components/test_runner/mock_grammar_check.cc
index 912576624d7e2e1e88ab7007f6ad650b9c3ea208..b1bdcebc2675af018e10514f9e3957430dd41002 100644
--- a/components/test_runner/mock_grammar_check.cc
+++ b/components/test_runner/mock_grammar_check.cc
@@ -20,7 +20,7 @@ bool MockGrammarCheck::CheckGrammarOfString(
const blink::WebString& text,
std::vector<blink::WebTextCheckingResult>* results) {
DCHECK(results);
- base::string16 string_text = text;
+ base::string16 string_text = text.utf16();
if (std::find_if(string_text.begin(), string_text.end(), IsASCIIAlpha) ==
string_text.end())
return true;
« no previous file with comments | « no previous file | components/test_runner/mock_spell_check.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698