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

Unified Diff: ui/wm/core/nested_accelerator_dispatcher_linux.cc

Issue 855023003: Add presubmit check for scoped_ptr usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE 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/widget/desktop_aura/desktop_cursor_loader_updater_aurawin.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/nested_accelerator_dispatcher_linux.cc
diff --git a/ui/wm/core/nested_accelerator_dispatcher_linux.cc b/ui/wm/core/nested_accelerator_dispatcher_linux.cc
index 3016fc031b4c415a9f867db0ca26313d523c2b6c..a5ce30a381ab174e29a953039a4a613578c2152d 100644
--- a/ui/wm/core/nested_accelerator_dispatcher_linux.cc
+++ b/ui/wm/core/nested_accelerator_dispatcher_linux.cc
@@ -38,8 +38,7 @@ bool IsKeyEvent(const XEvent* xev) {
scoped_ptr<ui::ScopedEventDispatcher> OverrideDispatcher(
ui::PlatformEventDispatcher* dispatcher) {
ui::PlatformEventSource* source = ui::PlatformEventSource::GetInstance();
- return source ? source->OverrideDispatcher(dispatcher)
- : scoped_ptr<ui::ScopedEventDispatcher>();
+ return source ? source->OverrideDispatcher(dispatcher) : nullptr;
}
} // namespace
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_cursor_loader_updater_aurawin.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698