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

Unified Diff: ash/display/display_change_observer_chromeos.cc

Issue 132983002: Replace OutputSnapshot |is_internal| with check against 'type == OUTPUT_TYPE_INTERNAL' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 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 | chromeos/display/output_configurator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_change_observer_chromeos.cc
diff --git a/ash/display/display_change_observer_chromeos.cc b/ash/display/display_change_observer_chromeos.cc
index 4215ac89dba4af3c2a2601d9785e00cb3ca2899b..7c5780ec639259df80a29f85ee6698482fa9985f 100644
--- a/ash/display/display_change_observer_chromeos.cc
+++ b/ash/display/display_change_observer_chromeos.cc
@@ -123,7 +123,7 @@ void DisplayChangeObserver::OnDisplayModeChanged(
for (size_t i = 0; i < outputs.size(); ++i) {
const OutputConfigurator::OutputSnapshot& output = outputs[i];
- if (output.is_internal &&
+ if (output.type == chromeos::OUTPUT_TYPE_INTERNAL &&
gfx::Display::InternalDisplayId() == gfx::Display::kInvalidDisplayID) {
// Fall back to output index. crbug.com/180100
gfx::Display::SetInternalDisplayId(
@@ -146,10 +146,10 @@ void DisplayChangeObserver::OnDisplayModeChanged(
output.x, output.y, mode_info->width, mode_info->height);
std::vector<Resolution> resolutions;
- if (!output.is_internal)
+ if (output.type != chromeos::OUTPUT_TYPE_INTERNAL)
resolutions = GetResolutionList(output);
- std::string name = output.is_internal ?
+ std::string name = output.type == chromeos::OUTPUT_TYPE_INTERNAL ?
l10n_util::GetStringUTF8(IDS_ASH_INTERNAL_DISPLAY_NAME) :
chromeos::GetDisplayName(output.output);
if (name.empty())
« no previous file with comments | « no previous file | chromeos/display/output_configurator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698