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

Unified Diff: components/spellcheck/renderer/spellcheck.cc

Issue 2159283003: [WIP][DO NOT LAND] Componentize spellcheck Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « components/spellcheck/renderer/spellcheck.h ('k') | components/spellcheck/renderer/spellcheck_language.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/spellcheck/renderer/spellcheck.cc
diff --git a/chrome/renderer/spellchecker/spellcheck.cc b/components/spellcheck/renderer/spellcheck.cc
similarity index 97%
rename from chrome/renderer/spellchecker/spellcheck.cc
rename to components/spellcheck/renderer/spellcheck.cc
index 8df94a29c8d6a14d9a770222168558bd4f933e82..c9f834d543f9faa740bb4c71d293d56233bff9f0 100644
--- a/chrome/renderer/spellchecker/spellcheck.cc
+++ b/components/spellcheck/renderer/spellcheck.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 "chrome/renderer/spellchecker/spellcheck.h"
+#include "components/spellcheck/renderer/spellcheck.h"
#include <stddef.h>
#include <stdint.h>
@@ -19,12 +19,13 @@
#include "base/threading/thread_task_runner_handle.h"
#include "build/build_config.h"
#include "chrome/common/channel_info.h"
-#include "chrome/common/chrome_switches.h"
-#include "chrome/common/spellcheck_common.h"
-#include "chrome/common/spellcheck_messages.h"
-#include "chrome/common/spellcheck_result.h"
-#include "chrome/renderer/spellchecker/spellcheck_language.h"
-#include "chrome/renderer/spellchecker/spellcheck_provider.h"
+#include "content/public/common/content_switches.h"
+//#include "chrome/common/chrome_switches.h"
+#include "components/spellcheck/common/spellcheck_common.h"
+#include "components/spellcheck/common/spellcheck_messages.h"
+#include "components/spellcheck/common/spellcheck_result.h"
+#include "components/spellcheck/renderer/spellcheck_language.h"
+#include "components/spellcheck/renderer/spellcheck_provider.h"
#include "content/public/renderer/render_thread.h"
#include "content/public/renderer/render_view.h"
#include "content/public/renderer/render_view_visitor.h"
@@ -199,7 +200,7 @@ void SpellCheck::FillSuggestions(
optional_suggestions->push_back(suggestion);
}
if (optional_suggestions->size() >=
- chrome::spellcheck_common::kMaxSuggestions) {
+ spellcheck_common::kMaxSuggestions) {
break;
}
}
« no previous file with comments | « components/spellcheck/renderer/spellcheck.h ('k') | components/spellcheck/renderer/spellcheck_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698