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

Side by Side Diff: ash/drag_drop/drag_drop_controller.cc

Issue 1547223002: Convert Pass()→std::move() in //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « ash/display/window_tree_host_manager.cc ('k') | ash/frame/custom_frame_view_ash_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/drag_drop/drag_drop_controller.h" 5 #include "ash/drag_drop/drag_drop_controller.h"
6 6
7 #include <utility>
8
7 #include "ash/drag_drop/drag_drop_tracker.h" 9 #include "ash/drag_drop/drag_drop_tracker.h"
8 #include "ash/drag_drop/drag_image_view.h" 10 #include "ash/drag_drop/drag_image_view.h"
9 #include "ash/shell.h" 11 #include "ash/shell.h"
10 #include "base/bind.h" 12 #include "base/bind.h"
11 #include "base/message_loop/message_loop.h" 13 #include "base/message_loop/message_loop.h"
12 #include "base/metrics/histogram_macros.h" 14 #include "base/metrics/histogram_macros.h"
13 #include "base/run_loop.h" 15 #include "base/run_loop.h"
14 #include "ui/aura/client/capture_client.h" 16 #include "ui/aura/client/capture_client.h"
15 #include "ui/aura/env.h" 17 #include "ui/aura/env.h"
16 #include "ui/aura/window.h" 18 #include "ui/aura/window.h"
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 drag_source_window_ = NULL; 560 drag_source_window_ = NULL;
559 } 561 }
560 562
561 void DragDropController::Cleanup() { 563 void DragDropController::Cleanup() {
562 if (drag_window_) 564 if (drag_window_)
563 drag_window_->RemoveObserver(this); 565 drag_window_->RemoveObserver(this);
564 drag_window_ = NULL; 566 drag_window_ = NULL;
565 drag_data_ = NULL; 567 drag_data_ = NULL;
566 // Cleanup can be called again while deleting DragDropTracker, so delete 568 // Cleanup can be called again while deleting DragDropTracker, so delete
567 // the pointer with a local variable to avoid double free. 569 // the pointer with a local variable to avoid double free.
568 scoped_ptr<ash::DragDropTracker> holder = drag_drop_tracker_.Pass(); 570 scoped_ptr<ash::DragDropTracker> holder = std::move(drag_drop_tracker_);
569 } 571 }
570 572
571 } // namespace ash 573 } // namespace ash
OLDNEW
« no previous file with comments | « ash/display/window_tree_host_manager.cc ('k') | ash/frame/custom_frame_view_ash_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698