OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // chrome_tab.cc : Implementation of DLL Exports. | 5 // chrome_tab.cc : Implementation of DLL Exports. |
6 | 6 |
7 // Include without path to make GYP build see it. | 7 // Include without path to make GYP build see it. |
8 #include "chrome_tab.h" // NOLINT | 8 #include "chrome_tab.h" // NOLINT |
9 | 9 |
10 #include <atlsecurity.h> | 10 #include <atlsecurity.h> |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 #ifndef NDEBUG | 202 #ifndef NDEBUG |
203 // Silence traces from the ATL registrar to reduce the log noise. | 203 // Silence traces from the ATL registrar to reduce the log noise. |
204 ATL::CTrace::s_trace.ChangeCategory(atlTraceRegistrar, 0, | 204 ATL::CTrace::s_trace.ChangeCategory(atlTraceRegistrar, 0, |
205 ATLTRACESTATUS_DISABLED); | 205 ATLTRACESTATUS_DISABLED); |
206 #endif | 206 #endif |
207 InitGoogleUrl(); | 207 InitGoogleUrl(); |
208 | 208 |
209 g_exit_manager = new base::AtExitManager(); | 209 g_exit_manager = new base::AtExitManager(); |
210 CommandLine::Init(0, NULL); | 210 CommandLine::Init(0, NULL); |
211 InitializeCrashReporting(); | 211 InitializeCrashReporting(); |
212 logging::InitLogging(NULL, logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, | 212 logging::InitLogging( |
213 logging::LOCK_LOG_FILE, logging::DELETE_OLD_LOG_FILE); | 213 NULL, |
| 214 logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, |
| 215 logging::LOCK_LOG_FILE, |
| 216 logging::DELETE_OLD_LOG_FILE, |
| 217 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); |
214 | 218 |
215 DllRedirector* dll_redirector = DllRedirector::GetInstance(); | 219 DllRedirector* dll_redirector = DllRedirector::GetInstance(); |
216 DCHECK(dll_redirector); | 220 DCHECK(dll_redirector); |
217 | 221 |
218 if (!dll_redirector->RegisterAsFirstCFModule()) { | 222 if (!dll_redirector->RegisterAsFirstCFModule()) { |
219 // Someone else was here first, try and get a pointer to their | 223 // Someone else was here first, try and get a pointer to their |
220 // DllGetClassObject export: | 224 // DllGetClassObject export: |
221 g_dll_get_class_object_redir_ptr = | 225 g_dll_get_class_object_redir_ptr = |
222 dll_redirector->GetDllGetClassObjectPtr(); | 226 dll_redirector->GetDllGetClassObjectPtr(); |
223 DCHECK(g_dll_get_class_object_redir_ptr != NULL) | 227 DCHECK(g_dll_get_class_object_redir_ptr != NULL) |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 sd.GetDacl(&new_dacl); | 788 sd.GetDacl(&new_dacl); |
785 new_dacl.AddAllowedAce(token_.GetUser(), GENERIC_WRITE | GENERIC_READ); | 789 new_dacl.AddAllowedAce(token_.GetUser(), GENERIC_WRITE | GENERIC_READ); |
786 if (AtlSetDacl(object_name.c_str(), SE_REGISTRY_KEY, new_dacl)) { | 790 if (AtlSetDacl(object_name.c_str(), SE_REGISTRY_KEY, new_dacl)) { |
787 result = SetOrDeleteMimeHandlerKey(enable, HKEY_LOCAL_MACHINE); | 791 result = SetOrDeleteMimeHandlerKey(enable, HKEY_LOCAL_MACHINE); |
788 } | 792 } |
789 } | 793 } |
790 | 794 |
791 backup.RestoreSecurity(object_name.c_str()); | 795 backup.RestoreSecurity(object_name.c_str()); |
792 return result; | 796 return result; |
793 } | 797 } |
OLD | NEW |