summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/ui/webui/settings/chromeos/device_stylus_handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/ui/webui/settings/chromeos/device_stylus_handler.h')
-rw-r--r--chromium/chrome/browser/ui/webui/settings/chromeos/device_stylus_handler.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/chromium/chrome/browser/ui/webui/settings/chromeos/device_stylus_handler.h b/chromium/chrome/browser/ui/webui/settings/chromeos/device_stylus_handler.h
index a1be49b471f..c0e2429de10 100644
--- a/chromium/chrome/browser/ui/webui/settings/chromeos/device_stylus_handler.h
+++ b/chromium/chrome/browser/ui/webui/settings/chromeos/device_stylus_handler.h
@@ -12,16 +12,13 @@
#include "base/scoped_observer.h"
#include "chrome/browser/chromeos/note_taking_helper.h"
#include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h"
+#include "ui/events/devices/device_data_manager.h"
#include "ui/events/devices/input_device_event_observer.h"
namespace base {
class ListValue;
}
-namespace ui {
-class DeviceDataManager;
-}
-
namespace chromeos {
namespace settings {
@@ -63,9 +60,10 @@ class StylusHandler : public ::settings::SettingsPageUIHandler,
std::set<std::string> note_taking_app_ids_;
// Observer registration.
- ScopedObserver<NoteTakingHelper, NoteTakingHelper::Observer> note_observer_;
+ ScopedObserver<NoteTakingHelper, NoteTakingHelper::Observer> note_observer_{
+ this};
ScopedObserver<ui::DeviceDataManager, ui::InputDeviceEventObserver>
- input_observer_;
+ input_observer_{this};
DISALLOW_COPY_AND_ASSIGN(StylusHandler);
};