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

Unified Diff: ui/views/event_monitor_aura.cc

Issue 809903005: ui/views: Cleanup usage of scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no need of Pass() Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/button/label_button.cc ('k') | ui/views/event_monitor_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/event_monitor_aura.cc
diff --git a/ui/views/event_monitor_aura.cc b/ui/views/event_monitor_aura.cc
index f5331d707af872eb9f26f60d21bdb7ce9249d770..73f55b6bc230a5f97d7a2600709dd0f089273510 100644
--- a/ui/views/event_monitor_aura.cc
+++ b/ui/views/event_monitor_aura.cc
@@ -14,7 +14,7 @@ namespace views {
// static
scoped_ptr<EventMonitor> EventMonitor::CreateApplicationMonitor(
ui::EventHandler* event_handler) {
- return scoped_ptr<EventMonitor>(
+ return make_scoped_ptr(
new EventMonitorAura(event_handler, aura::Env::GetInstance()));
}
@@ -22,8 +22,7 @@ scoped_ptr<EventMonitor> EventMonitor::CreateApplicationMonitor(
scoped_ptr<EventMonitor> EventMonitor::CreateWindowMonitor(
ui::EventHandler* event_handler,
gfx::NativeWindow target_window) {
- return scoped_ptr<EventMonitor>(
- new EventMonitorAura(event_handler, target_window));
+ return make_scoped_ptr(new EventMonitorAura(event_handler, target_window));
}
// static
« no previous file with comments | « ui/views/controls/button/label_button.cc ('k') | ui/views/event_monitor_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698