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

Unified Diff: chrome/browser/tab_contents/spelling_menu_observer.cc

Issue 11293241: Cleaning up the custom dictionary code relative to the SpellcheckService to make the custom diction… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « chrome/browser/spellchecker/spellcheck_service_unittest.cc ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/spelling_menu_observer.cc
diff --git a/chrome/browser/tab_contents/spelling_menu_observer.cc b/chrome/browser/tab_contents/spelling_menu_observer.cc
index 33d348545441749072fa715956388f10d729bb48..98bbd0bd15eee2c026fcc2fd8919e1ec43622c4a 100644
--- a/chrome/browser/tab_contents/spelling_menu_observer.cc
+++ b/chrome/browser/tab_contents/spelling_menu_observer.cc
@@ -219,7 +219,8 @@ void SpellingMenuObserver::ExecuteCommand(int command_id) {
SpellcheckService* spellcheck_service =
SpellcheckServiceFactory::GetForProfile(profile);
if (spellcheck_service)
- spellcheck_service->AddWord(UTF16ToUTF8(misspelled_word_));
+ spellcheck_service->GetCustomDictionary()->AddWord(
+ UTF16ToUTF8(misspelled_word_));
}
#if defined(OS_MACOSX)
spellcheck_mac::AddWord(misspelled_word_);
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_service_unittest.cc ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698