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

Side by Side Diff: base/profiler/win32_stack_frame_unwinder.cc

Issue 1479473002: base: Use std::move() instead of Pass() for real movable types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: basepass: missing-include Created 5 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "base/profiler/win32_stack_frame_unwinder.h" 5 #include "base/profiler/win32_stack_frame_unwinder.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <utility>
8 9
9 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
10 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
11 #include "base/stl_util.h" 12 #include "base/stl_util.h"
12 13
13 namespace base { 14 namespace base {
14 15
15 // Win32UnwindFunctions ------------------------------------------------------- 16 // Win32UnwindFunctions -------------------------------------------------------
16 17
17 const HMODULE ModuleHandleTraits::kNonNullModuleForTesting = 18 const HMODULE ModuleHandleTraits::kNonNullModuleForTesting =
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 #else 286 #else
286 NOTREACHED(); 287 NOTREACHED();
287 return false; 288 return false;
288 #endif 289 #endif
289 } 290 }
290 291
291 Win32StackFrameUnwinder::Win32StackFrameUnwinder( 292 Win32StackFrameUnwinder::Win32StackFrameUnwinder(
292 scoped_ptr<UnwindFunctions> unwind_functions) 293 scoped_ptr<UnwindFunctions> unwind_functions)
293 : at_top_frame_(true), 294 : at_top_frame_(true),
294 unwind_info_present_for_all_frames_(true), 295 unwind_info_present_for_all_frames_(true),
295 unwind_functions_(unwind_functions.Pass()) { 296 unwind_functions_(std::move(unwind_functions)) {}
296 }
297 297
298 } // namespace base 298 } // namespace base
OLDNEW
« no previous file with comments | « base/profiler/stack_sampling_profiler.cc ('k') | base/profiler/win32_stack_frame_unwinder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698