summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-08 14:53:13 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-08 14:53:13 +0000
commit73820078eac1040173047912c1f4d413a0eca696 (patch)
treea0c5faefde2be0c127956939c3b9841cfc999ecd /chrome/browser
parent62464e049919ba2868c1b4bbca685865167bc52a (diff)
downloadchromium_src-73820078eac1040173047912c1f4d413a0eca696.zip
chromium_src-73820078eac1040173047912c1f4d413a0eca696.tar.gz
chromium_src-73820078eac1040173047912c1f4d413a0eca696.tar.bz2
Removes ifdefs in browser_render_process_host.cc that prevented
adding custom words to the dictionary on platforms other than windows. This functionality has now been implemented on all platforms. Patch from pwicks86@gmail.com (Paul Wicks) BUG=None TEST=Adding words to dictionary on mac and linux. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20144 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/renderer_host/browser_render_process_host.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/chrome/browser/renderer_host/browser_render_process_host.cc b/chrome/browser/renderer_host/browser_render_process_host.cc
index 131d2a9..067fd26 100644
--- a/chrome/browser/renderer_host/browser_render_process_host.cc
+++ b/chrome/browser/renderer_host/browser_render_process_host.cc
@@ -40,6 +40,7 @@
#include "chrome/browser/renderer_host/render_widget_host.h"
#include "chrome/browser/renderer_host/resource_message_filter.h"
#include "chrome/browser/renderer_host/web_cache_manager.h"
+#include "chrome/browser/spellchecker.h"
#include "chrome/browser/visitedlink_master.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/chrome_descriptors.h"
@@ -66,7 +67,6 @@ using WebKit::WebCache;
// TODO(port): see comment by the only usage of RenderViewHost in this file.
#include "chrome/browser/renderer_host/render_view_host.h"
-#include "chrome/browser/spellchecker.h"
// Once the above TODO is finished, then this block is all Windows-specific
// files.
@@ -539,17 +539,11 @@ void BrowserRenderProcessHost::WidgetHidden() {
}
void BrowserRenderProcessHost::AddWord(const std::wstring& word) {
-#if !defined(OS_WIN)
- // TODO(port): reimplement when we get the spell checker up and running on
- // other platforms.
- NOTIMPLEMENTED();
-#else
base::Thread* io_thread = g_browser_process->io_thread();
if (profile()->GetSpellChecker()) {
io_thread->message_loop()->PostTask(FROM_HERE, NewRunnableMethod(
profile()->GetSpellChecker(), &SpellChecker::AddWord, word));
}
-#endif // !defined(OS_WIN)
}
void BrowserRenderProcessHost::AddVisitedLinks(