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

Side by Side Diff: ui/ozone/platform_selection.cc

Issue 335663002: [Ozone] Fix component build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ozone/platform_selection.h"
6
5 #include "base/command_line.h" 7 #include "base/command_line.h"
6 #include "base/logging.h" 8 #include "base/logging.h"
7 #include "ui/ozone/ozone_switches.h" 9 #include "ui/ozone/ozone_switches.h"
8 #include "ui/ozone/platform_list.h" 10 #include "ui/ozone/platform_list.h"
9 11
10 namespace ui { 12 namespace ui {
11 13
12 namespace { 14 namespace {
13 15
14 // Returns the name of the platform to use (value of --ozone-platform flag). 16 // Returns the name of the platform to use (value of --ozone-platform flag).
(...skipping 26 matching lines...) Expand all
41 43
42 LOG(FATAL) << "Invalid ozone platform: " << platform_name; 44 LOG(FATAL) << "Invalid ozone platform: " << platform_name;
43 return -1; // not reached 45 return -1; // not reached
44 } 46 }
45 47
46 const char* GetOzonePlatformName() { 48 const char* GetOzonePlatformName() {
47 return kPlatformNames[GetOzonePlatformId()]; 49 return kPlatformNames[GetOzonePlatformId()];
48 } 50 }
49 51
50 } // namespace ui 52 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698