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

Unified Diff: ash/accelerators/ash_focus_manager_factory.h

Issue 2953243002: FocusManagerFactory::Create() should return a unique_ptr. (Closed)
Patch Set: build Created 3 years, 6 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 | « no previous file | ash/accelerators/ash_focus_manager_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/ash_focus_manager_factory.h
diff --git a/ash/accelerators/ash_focus_manager_factory.h b/ash/accelerators/ash_focus_manager_factory.h
index 5d4ac24424f4409854e8701081856b30bcc44dee..5f05301021268d5c803695f582cd024029a78869 100644
--- a/ash/accelerators/ash_focus_manager_factory.h
+++ b/ash/accelerators/ash_focus_manager_factory.h
@@ -20,12 +20,16 @@ class AshFocusManagerFactory : public views::FocusManagerFactory {
protected:
// views::FocusManagerFactory overrides:
- views::FocusManager* CreateFocusManager(views::Widget* widget,
- bool desktop_widget) override;
+ std::unique_ptr<views::FocusManager> CreateFocusManager(
+ views::Widget* widget,
+ bool desktop_widget) override;
private:
class Delegate : public views::FocusManagerDelegate {
public:
+ Delegate();
+ ~Delegate() override;
+
// views::FocusManagerDelegate overrides:
bool ProcessAccelerator(const ui::Accelerator& accelerator) override;
};
« no previous file with comments | « no previous file | ash/accelerators/ash_focus_manager_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698