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

Side by Side Diff: content/renderer/render_process_impl.cc

Issue 2749863003: [Merge M57] Reverting 2618623003. (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_process_impl.h" 5 #include "content/renderer/render_process_impl.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <windows.h> 10 #include <windows.h>
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 return is_background ? BACKGROUND : FOREGROUND; 132 return is_background ? BACKGROUND : FOREGROUND;
133 } 133 }
134 134
135 } // namespace 135 } // namespace
136 136
137 namespace content { 137 namespace content {
138 138
139 RenderProcessImpl::RenderProcessImpl() 139 RenderProcessImpl::RenderProcessImpl()
140 : enabled_bindings_(0) { 140 : enabled_bindings_(0) {
141 #if defined(OS_WIN) 141 #if defined(OS_WIN)
142 // Record whether the machine is domain joined in a crash key. This will be
143 // used to better identify whether crashes are from enterprise users.
144 // Note that this is done very early on so that crashes have the highest
145 // chance of getting tagged.
146 base::debug::SetCrashKeyValue("enrolled-to-domain",
147 base::win::IsEnrolledToDomain() ? "yes" : "no");
148
149 // HACK: See http://b/issue?id=1024307 for rationale. 142 // HACK: See http://b/issue?id=1024307 for rationale.
150 if (GetModuleHandle(L"LPK.DLL") == NULL) { 143 if (GetModuleHandle(L"LPK.DLL") == NULL) {
151 // Makes sure lpk.dll is loaded by gdi32 to make sure ExtTextOut() works 144 // Makes sure lpk.dll is loaded by gdi32 to make sure ExtTextOut() works
152 // when buffering into a EMF buffer for printing. 145 // when buffering into a EMF buffer for printing.
153 typedef BOOL (__stdcall *GdiInitializeLanguagePack)(int LoadedShapingDLLs); 146 typedef BOOL (__stdcall *GdiInitializeLanguagePack)(int LoadedShapingDLLs);
154 GdiInitializeLanguagePack gdi_init_lpk = 147 GdiInitializeLanguagePack gdi_init_lpk =
155 reinterpret_cast<GdiInitializeLanguagePack>(GetProcAddress( 148 reinterpret_cast<GdiInitializeLanguagePack>(GetProcAddress(
156 GetModuleHandle(L"GDI32.DLL"), 149 GetModuleHandle(L"GDI32.DLL"),
157 "GdiInitializeLanguagePack")); 150 "GdiInitializeLanguagePack"));
158 DCHECK(gdi_init_lpk); 151 DCHECK(gdi_init_lpk);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 index_to_traits_callback = 218 index_to_traits_callback =
226 base::Bind(&DefaultRendererWorkerPoolIndexForTraits); 219 base::Bind(&DefaultRendererWorkerPoolIndexForTraits);
227 } 220 }
228 DCHECK(index_to_traits_callback); 221 DCHECK(index_to_traits_callback);
229 222
230 base::TaskScheduler::CreateAndSetDefaultTaskScheduler( 223 base::TaskScheduler::CreateAndSetDefaultTaskScheduler(
231 params_vector, index_to_traits_callback); 224 params_vector, index_to_traits_callback);
232 } 225 }
233 226
234 } // namespace content 227 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698