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

Unified Diff: chrome/utility/chrome_content_utility_client.cc

Issue 8351028: Make chrome/utility not depend on content/common. Enforce with DEPS. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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/utility/DEPS ('k') | content/public/utility/utility_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/chrome_content_utility_client.cc
===================================================================
--- chrome/utility/chrome_content_utility_client.cc (revision 107064)
+++ chrome/utility/chrome_content_utility_client.cc (working copy)
@@ -31,8 +31,6 @@
#include "base/path_service.h"
#include "base/win/iat_patch_function.h"
#include "base/win/scoped_handle.h"
-#include "content/common/child_process_messages.h"
-#include "content/common/sandbox_init_wrapper.h"
#include "content/public/common/content_switches.h"
#include "printing/emf_win.h"
#endif // defined(OS_WIN)
@@ -234,12 +232,9 @@
LOGFONT logfont;
if (GetObject(font, sizeof(LOGFONT), &logfont)) {
std::vector<char> font_data;
- if (content::UtilityThread::Get()->Send(
- new ChildProcessHostMsg_PreCacheFont(logfont))) {
- rv = GetFontData(hdc, table, offset, buffer, length);
- content::UtilityThread::Get()->Send(
- new ChildProcessHostMsg_ReleaseCachedFonts());
- }
+ content::UtilityThread::Get()->PreCacheFont(logfont);
+ rv = GetFontData(hdc, table, offset, buffer, length);
+ content::UtilityThread::Get()->ReleaseCachedFonts();
}
}
return rv;
« no previous file with comments | « chrome/utility/DEPS ('k') | content/public/utility/utility_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698