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

Unified Diff: ash/system/chromeos/screen_layout_observer.h

Issue 2400553002: ash: Remove broken display notification suppression when settings is open (Closed)
Patch Set: ash_content_unittests Created 4 years, 2 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 | « ash/display/mirror_window_controller_unittest.cc ('k') | ash/system/chromeos/screen_layout_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/screen_layout_observer.h
diff --git a/ash/system/chromeos/screen_layout_observer.h b/ash/system/chromeos/screen_layout_observer.h
index 59409c66190944c9da3d7bc1c8d5c8440dfd5b26..a97996837f147b44bcc18633b9ca16847fe603a1 100644
--- a/ash/system/chromeos/screen_layout_observer.h
+++ b/ash/system/chromeos/screen_layout_observer.h
@@ -29,6 +29,11 @@ class ASH_EXPORT ScreenLayoutObserver : public WmDisplayObserver {
// Overridden from WmDisplayObserver:
void OnDisplayConfigurationChanged() override;
+ // Allow tests to suppress showing notifications.
oshima 2016/10/11 20:50:34 nit: update the comment. (or clarify as it sounds
James Cook 2016/10/11 20:58:17 Done.
+ void set_show_notifications_for_testing(bool show) {
+ show_notifications_for_testing = show;
+ }
+
private:
friend class ScreenLayoutObserverTest;
@@ -56,6 +61,8 @@ class ASH_EXPORT ScreenLayoutObserver : public WmDisplayObserver {
DisplayInfoMap display_info_;
+ bool show_notifications_for_testing = true;
+
DISALLOW_COPY_AND_ASSIGN(ScreenLayoutObserver);
};
« no previous file with comments | « ash/display/mirror_window_controller_unittest.cc ('k') | ash/system/chromeos/screen_layout_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698