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

Unified Diff: chrome/common/section_util_win.cc

Issue 6677064: Remove last dependencies on chrome\common from chrome\plugin. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/section_util_win.h ('k') | chrome/plugin/plugin_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/section_util_win.cc
===================================================================
--- chrome/common/section_util_win.cc (revision 78278)
+++ chrome/common/section_util_win.cc (working copy)
@@ -1,29 +0,0 @@
-// Copyright (c) 2011 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/common/section_util_win.h"
-
-namespace chrome {
-
-HANDLE GetSectionFromProcess(HANDLE section, HANDLE process, bool read_only) {
- HANDLE valid_section = NULL;
- DWORD access = STANDARD_RIGHTS_REQUIRED | FILE_MAP_READ;
- if (!read_only)
- access |= FILE_MAP_WRITE;
- DuplicateHandle(process, section, GetCurrentProcess(), &valid_section, access,
- FALSE, 0);
- return valid_section;
-}
-
-HANDLE GetSectionForProcess(HANDLE section, HANDLE process, bool read_only) {
- HANDLE valid_section = NULL;
- DWORD access = STANDARD_RIGHTS_REQUIRED | FILE_MAP_READ;
- if (!read_only)
- access |= FILE_MAP_WRITE;
- DuplicateHandle(GetCurrentProcess(), section, process, &valid_section, access,
- FALSE, 0);
- return valid_section;
-}
-
-} // namespace chrome
« no previous file with comments | « chrome/common/section_util_win.h ('k') | chrome/plugin/plugin_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698