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

Side by Side Diff: ash/display/display_error_observer_chromeos.cc

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ash/display/display_error_observer_chromeos.h" 5 #include "ash/display/display_error_observer_chromeos.h"
6 6
7 #include "ash/display/display_util.h" 7 #include "ash/display/display_util.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "grit/ash_strings.h" 9 #include "grit/ash_strings.h"
10 10
11 namespace ash { 11 namespace ash {
12 12
13 DisplayErrorObserver::DisplayErrorObserver() { 13 DisplayErrorObserver::DisplayErrorObserver() {}
14 }
15 14
16 DisplayErrorObserver::~DisplayErrorObserver() { 15 DisplayErrorObserver::~DisplayErrorObserver() {}
17 }
18 16
19 void DisplayErrorObserver::OnDisplayModeChangeFailed( 17 void DisplayErrorObserver::OnDisplayModeChangeFailed(
20 const ui::DisplayConfigurator::DisplayStateList& displays, 18 const ui::DisplayConfigurator::DisplayStateList& displays,
21 ui::MultipleDisplayState new_state) { 19 ui::MultipleDisplayState new_state) {
22 LOG(ERROR) << "Failed to configure the following display(s):"; 20 LOG(ERROR) << "Failed to configure the following display(s):";
23 for (const auto& display : displays) { 21 for (const auto& display : displays) {
24 LOG(ERROR) << "- Display with ID = " << display->display_id() 22 LOG(ERROR) << "- Display with ID = " << display->display_id()
25 << ", and EDID = " << base::HexEncode(display->edid().data(), 23 << ", and EDID = " << base::HexEncode(display->edid().data(),
26 display->edid().size()) 24 display->edid().size())
27 << "."; 25 << ".";
28 } 26 }
29 27
30 ShowDisplayErrorNotification( 28 ShowDisplayErrorNotification(
31 (new_state == ui::MULTIPLE_DISPLAY_STATE_DUAL_MIRROR) 29 (new_state == ui::MULTIPLE_DISPLAY_STATE_DUAL_MIRROR)
32 ? IDS_ASH_DISPLAY_FAILURE_ON_MIRRORING 30 ? IDS_ASH_DISPLAY_FAILURE_ON_MIRRORING
33 : IDS_ASH_DISPLAY_FAILURE_ON_NON_MIRRORING); 31 : IDS_ASH_DISPLAY_FAILURE_ON_NON_MIRRORING);
34 } 32 }
35 33
36 } // namespace ash 34 } // namespace ash
OLDNEW
« no previous file with comments | « ash/display/display_change_observer_chromeos.cc ('k') | ash/display/display_error_observer_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698