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

Unified Diff: content/shell/test_runner/spell_check_client.cc

Issue 2707183003: Move //components/test_runner back into //content/shell (Closed)
Patch Set: Trim DEPS Created 3 years, 10 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
Index: content/shell/test_runner/spell_check_client.cc
diff --git a/components/test_runner/spell_check_client.cc b/content/shell/test_runner/spell_check_client.cc
similarity index 93%
rename from components/test_runner/spell_check_client.cc
rename to content/shell/test_runner/spell_check_client.cc
index 50cd5f932e9fe0e96a94f4201a3d4f7f92fcfa22..a6e0a4fdf5e3957e8eef18c5f4715af2ea7d02de 100644
--- a/components/test_runner/spell_check_client.cc
+++ b/content/shell/test_runner/spell_check_client.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/test_runner/spell_check_client.h"
+#include "content/shell/test_runner/spell_check_client.h"
#include <stddef.h>
@@ -10,9 +10,9 @@
#include "base/bind_helpers.h"
#include "base/logging.h"
#include "base/macros.h"
-#include "components/test_runner/mock_grammar_check.h"
-#include "components/test_runner/test_runner.h"
-#include "components/test_runner/web_test_delegate.h"
+#include "content/shell/test_runner/mock_grammar_check.h"
+#include "content/shell/test_runner/test_runner.h"
+#include "content/shell/test_runner/web_test_delegate.h"
#include "third_party/WebKit/public/web/WebFrame.h"
#include "third_party/WebKit/public/web/WebKit.h"
#include "third_party/WebKit/public/web/WebTextCheckingCompletion.h"
@@ -27,8 +27,7 @@ SpellCheckClient::SpellCheckClient(TestRunner* test_runner)
DCHECK(test_runner);
}
-SpellCheckClient::~SpellCheckClient() {
-}
+SpellCheckClient::~SpellCheckClient() {}
void SpellCheckClient::SetDelegate(WebTestDelegate* delegate) {
delegate_ = delegate;
@@ -116,8 +115,7 @@ void SpellCheckClient::FinishLastTextCheck() {
text.substr(misspelled_position, misspelled_length)),
&suggestions);
results.push_back(blink::WebTextCheckingResult(
- blink::WebTextDecorationTypeSpelling,
- offset + misspelled_position,
+ blink::WebTextDecorationTypeSpelling, offset + misspelled_position,
misspelled_length,
suggestions.isEmpty() ? blink::WebString() : suggestions[0]));
text = text.substr(misspelled_position + misspelled_length);

Powered by Google App Engine
This is Rietveld 408576698