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

Unified Diff: ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc

Issue 989993002: x11: Use scoped_ptr<> for X11 objects where it makes sense. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 9 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
Index: ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc
diff --git a/ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc b/ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc
index 6b14045ef3971755faa9211b6399e2dd32bee03f..9cf10d43e04667d4ab4f68ad179a25cadaa0dac2 100644
--- a/ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc
+++ b/ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc
@@ -76,8 +76,9 @@ ScopedDisableInternalMouseAndKeyboardX11::
static_cast<ui::DeviceDataManagerX11*>(
ui::DeviceDataManager::GetInstance());
if (device_data_manager->IsXInput2Available()) {
- XIDeviceList xi_dev_list = ui::DeviceListCacheX11::GetInstance()->
- GetXI2DeviceList(gfx::GetXDisplay());
+ const XIDeviceList& xi_dev_list =
+ ui::DeviceListCacheX11::GetInstance()->GetXI2DeviceList(
+ gfx::GetXDisplay());
for (int i = 0; i < xi_dev_list.count; ++i) {
std::string device_name(xi_dev_list[i].name);
base::TrimWhitespaceASCII(device_name, base::TRIM_TRAILING, &device_name);
« no previous file with comments | « ash/host/ash_window_tree_host_x11.cc ('k') | chrome/browser/ui/libgtk2ui/x11_input_method_context_impl_gtk2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698