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

Unified Diff: content/shell/shell_content_browser_client.cc

Issue 20860003: Remove hyphenation code from Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | « content/shell/shell_content_browser_client.h ('k') | third_party/hyphen/AUTHORS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_content_browser_client.cc
diff --git a/content/shell/shell_content_browser_client.cc b/content/shell/shell_content_browser_client.cc
index a08dac2a353325262ca259d0a9ba0a5bdea8772d..04207d35399bf3de977f29bd816737a481f98772 100644
--- a/content/shell/shell_content_browser_client.cc
+++ b/content/shell/shell_content_browser_client.cc
@@ -52,23 +52,12 @@ ShellContentBrowserClient* ShellContentBrowserClient::Get() {
}
ShellContentBrowserClient::ShellContentBrowserClient()
- : hyphen_dictionary_file_(base::kInvalidPlatformFileValue),
- shell_browser_main_parts_(NULL) {
+ : shell_browser_main_parts_(NULL) {
DCHECK(!g_browser_client);
g_browser_client = this;
if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree))
return;
webkit_source_dir_ = GetWebKitRootDirFilePath();
- base::FilePath source_root_path;
- PathService::Get(base::DIR_SOURCE_ROOT, &source_root_path);
- base::FilePath dictionary_file_path =
- base::MakeAbsoluteFilePath(source_root_path.Append(
- FILE_PATH_LITERAL("third_party/hyphen/hyph_en_US.dic")));
- hyphen_dictionary_file_ = base::CreatePlatformFile(dictionary_file_path,
- base::PLATFORM_FILE_READ |
- base::PLATFORM_FILE_OPEN,
- NULL,
- NULL);
}
ShellContentBrowserClient::~ShellContentBrowserClient() {
@@ -231,12 +220,6 @@ void ShellContentBrowserClient::Observe(int type,
registrar_.Remove(this,
NOTIFICATION_RENDERER_PROCESS_TERMINATED,
source);
- if (hyphen_dictionary_file_ != base::kInvalidPlatformFileValue) {
- RenderProcessHost* host = Source<RenderProcessHost>(source).ptr();
- IPC::PlatformFileForTransit file = IPC::GetFileHandleForProcess(
- hyphen_dictionary_file_, host->GetHandle(), false);
- host->Send(new ShellViewMsg_LoadHyphenDictionary(file));
- }
break;
}
« no previous file with comments | « content/shell/shell_content_browser_client.h ('k') | third_party/hyphen/AUTHORS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698