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

Side by Side Diff: chrome/app/close_handle_hook_win.cc

Issue 1445003002: Use std::default_delete as the default deleter for scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: How many trial and errors before this builds on the Windows bots Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/app/close_handle_hook_win.h" 5 #include "chrome/app/close_handle_hook_win.h"
6 6
7 #include <Windows.h> 7 #include <Windows.h>
8 #include <psapi.h> 8 #include <psapi.h>
9 9
10 #include <algorithm>
10 #include <vector> 11 #include <vector>
11 12
12 #include "base/lazy_instance.h" 13 #include "base/lazy_instance.h"
13 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
14 #include "base/win/iat_patch_function.h" 15 #include "base/win/iat_patch_function.h"
15 #include "base/win/pe_image.h" 16 #include "base/win/pe_image.h"
16 #include "base/win/scoped_handle.h" 17 #include "base/win/scoped_handle.h"
17 #include "chrome/common/channel_info.h" 18 #include "chrome/common/channel_info.h"
18 #include "components/version_info/version_info.h" 19 #include "components/version_info/version_info.h"
19 20
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 PatchLoadedModules(hooks); 276 PatchLoadedModules(hooks);
276 } else { 277 } else {
277 base::win::DisableHandleVerifier(); 278 base::win::DisableHandleVerifier();
278 } 279 }
279 } 280 }
280 281
281 void RemoveHandleHooks() { 282 void RemoveHandleHooks() {
282 // We are partching all loaded modules without forcing them to stay in memory, 283 // We are partching all loaded modules without forcing them to stay in memory,
283 // removing patches is not safe. 284 // removing patches is not safe.
284 } 285 }
OLDNEW
« no previous file with comments | « base/trace_event/memory_dump_manager.h ('k') | chrome/browser/chromeos/app_mode/kiosk_app_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698