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

Unified Diff: content/common/sandbox_win.cc

Issue 1432123002: Switch to direct write font proxy and remove the font cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dwfontsplit
Patch Set: Move functions into anon namespace and minor renames. Created 5 years 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: content/common/sandbox_win.cc
diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc
index 4e441bc7a95ea5812d2bcfe7d7ed54102dedde50..5e088776210b5ff028d1761f4433441a8b147ab9 100644
--- a/content/common/sandbox_win.cc
+++ b/content/common/sandbox_win.cc
@@ -28,7 +28,6 @@
#include "content/common/content_switches_internal.h"
#include "content/public/common/content_client.h"
#include "content/public/common/content_switches.h"
-#include "content/public/common/dwrite_font_platform_win.h"
#include "content/public/common/sandbox_init.h"
#include "content/public/common/sandboxed_process_launcher_delegate.h"
#include "sandbox/win/src/process_mitigations.h"
@@ -732,22 +731,6 @@ base::Process StartSandboxedProcess(
true,
sandbox::TargetPolicy::FILES_ALLOW_READONLY,
policy);
-
- // If DirectWrite is enabled for font rendering then open the font cache
- // section which is created by the browser and pass the handle to the
- // renderer process. This is needed because renderer processes on
- // Windows 8+ may be running in an AppContainer sandbox and hence their
- // kernel object namespace may be partitioned.
- std::string name(content::kFontCacheSharedSectionName);
- name.append(base::UintToString(base::GetCurrentProcId()));
-
- base::SharedMemory direct_write_font_cache_section;
- if (direct_write_font_cache_section.Open(name, true)) {
- void* shared_handle = policy->AddHandleToShare(
- direct_write_font_cache_section.handle().GetHandle());
- cmd_line->AppendSwitchASCII(switches::kFontCacheSharedHandle,
- base::UintToString(reinterpret_cast<unsigned int>(shared_handle)));
- }
}
}
#endif

Powered by Google App Engine
This is Rietveld 408576698