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

Unified Diff: services/ui/ws/platform_display_factory.h

Issue 2497303002: Fix ws::Display initialization order. (Closed)
Patch Set: Fix use after move in test. Created 4 years, 1 month 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 | « services/ui/ws/platform_display_delegate.h ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/platform_display_factory.h
diff --git a/services/ui/ws/platform_display_factory.h b/services/ui/ws/platform_display_factory.h
index d4b8dda16cb39e3b95b3405c2ca2074d840682c9..80bd1c107d65c51a09e60d33d5294d9ec42fd819 100644
--- a/services/ui/ws/platform_display_factory.h
+++ b/services/ui/ws/platform_display_factory.h
@@ -5,6 +5,8 @@
#ifndef SERVICES_UI_WS_PLATFORM_DISPLAY_FACTORY_H_
#define SERVICES_UI_WS_PLATFORM_DISPLAY_FACTORY_H_
+#include <memory>
+
namespace ui {
namespace ws {
@@ -14,7 +16,7 @@ class PlatformDisplay;
// PlatformDisplays.
class PlatformDisplayFactory {
public:
- virtual PlatformDisplay* CreatePlatformDisplay() = 0;
+ virtual std::unique_ptr<PlatformDisplay> CreatePlatformDisplay() = 0;
};
} // namespace ws
« no previous file with comments | « services/ui/ws/platform_display_delegate.h ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698