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

Unified Diff: ash/shell.h

Issue 972153004: Make ui::DisplayConfigurator a singleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make a Singleton 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
« no previous file with comments | « no previous file | ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.h
diff --git a/ash/shell.h b/ash/shell.h
index 14b7fd48fae11a4f575dd74faef7846c11b7cb85..4bbf75681685f7028abde9cc8bb1092721629981 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -519,7 +519,7 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate,
#if defined(OS_CHROMEOS)
// TODO(oshima): Move these objects to DisplayController.
ui::DisplayConfigurator* display_configurator() {
- return display_configurator_.get();
+ return display_configurator_;
}
DisplayConfiguratorAnimation* display_configurator_animation() {
return display_configurator_animation_.get();
@@ -724,7 +724,8 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate,
last_window_closed_logout_reminder_;
scoped_ptr<VirtualKeyboardController> virtual_keyboard_controller_;
// Controls video output device state.
- scoped_ptr<ui::DisplayConfigurator> display_configurator_;
+ // Bare pointer as is a singleton.
+ ui::DisplayConfigurator* display_configurator_;
scoped_ptr<DisplayConfiguratorAnimation> display_configurator_animation_;
scoped_ptr<DisplayErrorObserver> display_error_observer_;
scoped_ptr<ProjectingObserver> projecting_observer_;
« no previous file with comments | « no previous file | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698