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

Side by Side Diff: ui/display/chromeos/x11/native_display_event_dispatcher_x11.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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
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 "ui/display/chromeos/x11/native_display_event_dispatcher_x11.h" 5 #include "ui/display/chromeos/x11/native_display_event_dispatcher_x11.h"
6 6
7 #include <X11/extensions/Xrandr.h> 7 #include <X11/extensions/Xrandr.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/time/default_tick_clock.h" 10 #include "base/time/default_tick_clock.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 return ui::POST_DISPATCH_PERFORM_DEFAULT; 102 return ui::POST_DISPATCH_PERFORM_DEFAULT;
103 } 103 }
104 } 104 }
105 105
106 delegate_->NotifyDisplayObservers(); 106 delegate_->NotifyDisplayObservers();
107 107
108 return ui::POST_DISPATCH_PERFORM_DEFAULT; 108 return ui::POST_DISPATCH_PERFORM_DEFAULT;
109 } 109 }
110 110
111 void NativeDisplayEventDispatcherX11::SetTickClockForTest( 111 void NativeDisplayEventDispatcherX11::SetTickClockForTest(
112 scoped_ptr<base::TickClock> tick_clock) { 112 std::unique_ptr<base::TickClock> tick_clock) {
113 tick_clock_ = std::move(tick_clock); 113 tick_clock_ = std::move(tick_clock);
114 startup_time_ = tick_clock_->NowTicks(); 114 startup_time_ = tick_clock_->NowTicks();
115 } 115 }
116 116
117 } // namespace ui 117 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698