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

Unified Diff: ui/display/chromeos/ozone/display_configurator_ozone.cc

Issue 383463002: Don't bother asking the platform for the delegates if they are already set (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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/display/chromeos/display_configurator.cc ('k') | ui/display/chromeos/x11/display_configurator_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/chromeos/ozone/display_configurator_ozone.cc
diff --git a/ui/display/chromeos/ozone/display_configurator_ozone.cc b/ui/display/chromeos/ozone/display_configurator_ozone.cc
index 0a8528ffe5a79ef937163aacc646d4c5531e92bc..5f4bb8e1138399dd6ed50b01991e6be28c2186de 100644
--- a/ui/display/chromeos/ozone/display_configurator_ozone.cc
+++ b/ui/display/chromeos/ozone/display_configurator_ozone.cc
@@ -11,11 +11,15 @@
namespace ui {
-void DisplayConfigurator::PlatformInitialize() {
- InitializeDelegates(
- ui::OzonePlatform::GetInstance()->CreateNativeDisplayDelegate(),
- scoped_ptr<TouchscreenDelegate>(new TouchscreenDelegateImpl(
- ui::OzonePlatform::GetInstance()->CreateTouchscreenDeviceManager())));
+scoped_ptr<NativeDisplayDelegate>
+DisplayConfigurator::CreatePlatformNativeDisplayDelegate() {
+ return ui::OzonePlatform::GetInstance()->CreateNativeDisplayDelegate();
+}
+
+scoped_ptr<DisplayConfigurator::TouchscreenDelegate>
+DisplayConfigurator::CreatePlatformTouchscreenDelegate() {
+ return scoped_ptr<TouchscreenDelegate>(new TouchscreenDelegateImpl(
+ ui::OzonePlatform::GetInstance()->CreateTouchscreenDeviceManager()));
}
} // namespace ui
« no previous file with comments | « ui/display/chromeos/display_configurator.cc ('k') | ui/display/chromeos/x11/display_configurator_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698