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

Unified Diff: content/browser/hyphenator/hyphenator_message_filter.cc

Issue 11036054: Change the directory containing hyphenation dictionaries. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 | « chrome/browser/chrome_content_browser_client.cc ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/hyphenator/hyphenator_message_filter.cc
===================================================================
--- content/browser/hyphenator/hyphenator_message_filter.cc (revision 161449)
+++ content/browser/hyphenator/hyphenator_message_filter.cc (working copy)
@@ -10,8 +10,8 @@
#include "content/browser/hyphenator/hyphenator_message_filter.h"
#include "content/common/hyphenator_messages.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/render_process_host.h"
-#include "content/public/common/content_paths.h"
namespace {
@@ -85,8 +85,10 @@
void HyphenatorMessageFilter::OpenDictionary(const string16& locale) {
DCHECK(dictionary_file_ == base::kInvalidPlatformFileValue);
- if (dictionary_base_.empty())
- PathService::Get(base::DIR_EXE, &dictionary_base_);
+ if (dictionary_base_.empty()) {
+ dictionary_base_ =
+ GetContentClient()->browser()->GetHyphenDictionaryDirectory();
+ }
std::string rule_file = locale.empty() ? "en-US" : UTF16ToASCII(locale);
rule_file.append("-1-0.dic");
FilePath rule_path = dictionary_base_.AppendASCII(rule_file);
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698