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

Unified Diff: third_party/WebKit/Source/web/ContextMenuClientImpl.cpp

Issue 2177023002: Remove spellchecker feedback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 4 years, 4 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: third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
index a5b0b4e643f4b66cda1cf2ff3b36721a27243d72..091e80a2dd3b62757266e466b967ac088ae00706 100644
--- a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
@@ -106,7 +106,7 @@ static bool IsWhiteSpaceOrPunctuation(UChar c)
return isSpaceOrNewline(c) || WTF::Unicode::isPunct(c);
}
-static String selectMisspellingAsync(LocalFrame* selectedFrame, String& description, uint32_t& hash)
+static String selectMisspellingAsync(LocalFrame* selectedFrame, String& description)
{
VisibleSelection selection = selectedFrame->selection().selection();
if (selection.isNone())
@@ -118,7 +118,6 @@ static String selectMisspellingAsync(LocalFrame* selectedFrame, String& descript
if (markers.size() != 1)
return String();
description = markers[0]->description();
- hash = markers[0]->hash();
// Cloning a range fails only for invalid ranges.
Range* markerRange = selectionRange->cloneRange();
@@ -304,9 +303,7 @@ bool ContextMenuClientImpl::showContextMenu(const ContextMenu* defaultMenu, bool
// user right-clicks a mouse on a word, Chrome just needs to find a
// spelling marker on the word instead of spellchecking it.
String description;
- uint32_t hash = 0;
- data.misspelledWord = selectMisspellingAsync(selectedFrame, description, hash);
- data.misspellingHash = hash;
+ data.misspelledWord = selectMisspellingAsync(selectedFrame, description);
if (description.length()) {
Vector<String> suggestions;
description.split('\n', suggestions);
« no previous file with comments | « third_party/WebKit/Source/web/AssertMatchingEnums.cpp ('k') | third_party/WebKit/Source/web/SpellCheckerClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698