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

Side by Side Diff: ui/display/chromeos/display_configurator.cc

Issue 923273003: Update diplays even if configuration failed during startup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/display/chromeos/display_configurator.h" 5 #include "ui/display/chromeos/display_configurator.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/sys_info.h" 10 #include "base/sys_info.h"
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 } 997 }
998 998
999 void DisplayConfigurator::NotifyObservers( 999 void DisplayConfigurator::NotifyObservers(
1000 bool success, 1000 bool success,
1001 MultipleDisplayState attempted_state) { 1001 MultipleDisplayState attempted_state) {
1002 if (success) { 1002 if (success) {
1003 FOR_EACH_OBSERVER( 1003 FOR_EACH_OBSERVER(
1004 Observer, observers_, OnDisplayModeChanged(cached_displays_)); 1004 Observer, observers_, OnDisplayModeChanged(cached_displays_));
1005 } else { 1005 } else {
1006 FOR_EACH_OBSERVER( 1006 FOR_EACH_OBSERVER(
1007 Observer, observers_, OnDisplayModeChangeFailed(attempted_state)); 1007 Observer, observers_, OnDisplayModeChangeFailed(cached_displays_,
1008 attempted_state));
1008 } 1009 }
1009 } 1010 }
1010 1011
1011 } // namespace ui 1012 } // namespace ui
OLDNEW
« ui/display/chromeos/display_configurator.h ('K') | « ui/display/chromeos/display_configurator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698