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

Unified Diff: chrome_frame/crash_reporting/nt_loader.cc

Issue 126143005: Remove Chrome Frame code and resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to r244038 Created 6 years, 11 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_frame/crash_reporting/nt_loader.h ('k') | chrome_frame/crash_reporting/nt_loader_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/crash_reporting/nt_loader.cc
diff --git a/chrome_frame/crash_reporting/nt_loader.cc b/chrome_frame/crash_reporting/nt_loader.cc
deleted file mode 100644
index 3e5a99a6951b35c19c33bf1a0228330e08181b19..0000000000000000000000000000000000000000
--- a/chrome_frame/crash_reporting/nt_loader.cc
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-#include "chrome_frame/crash_reporting/nt_loader.h"
-
-#include <winnt.h>
-#include <winternl.h>
-#include "base/logging.h"
-
-namespace nt_loader {
-
-LDR_DATA_TABLE_ENTRY* GetLoaderEntry(HMODULE module) {
- // Make sure we own the loader's lock on entry here.
- DCHECK(OwnsCriticalSection(GetLoaderLock()));
- PEB* peb = GetCurrentPeb();
-
- LIST_ENTRY* head = &peb->Ldr->InLoadOrderModuleList;
- for (LIST_ENTRY* entry = head->Flink; entry != head; entry = entry->Flink) {
- LDR_DATA_TABLE_ENTRY* ldr_entry =
- CONTAINING_RECORD(entry, LDR_DATA_TABLE_ENTRY, InLoadOrderLinks);
-
- if (reinterpret_cast<HMODULE>(ldr_entry->DllBase) == module)
- return ldr_entry;
- }
-
- return NULL;
-}
-
-} // namespace nt_loader
« no previous file with comments | « chrome_frame/crash_reporting/nt_loader.h ('k') | chrome_frame/crash_reporting/nt_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698