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

Unified Diff: services/device_info/device_info.cc

Issue 1375313006: For c++, Generate enum classes instead of enum from mojom. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 | « services/debugger/debugger.cc ('k') | services/files/directory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/device_info/device_info.cc
diff --git a/services/device_info/device_info.cc b/services/device_info/device_info.cc
index 791bc3a6e8713a0285c9ca6e7ca40b0949f8cb75..c94bd0c61be4c2910e3fd35dcd16860490f19873 100644
--- a/services/device_info/device_info.cc
+++ b/services/device_info/device_info.cc
@@ -25,8 +25,8 @@ class DeviceInfo : public mojo::ApplicationDelegate,
// We look for the 'DISPLAY' environment variable. If present, then we assume
// it to be a desktop, else we assume it to be a commandline
void GetDeviceType(const GetDeviceTypeCallback& callback) override {
- callback.Run(getenv("DISPLAY") ? DEVICE_TYPE_DESKTOP
- : DEVICE_TYPE_HEADLESS);
+ callback.Run(getenv("DISPLAY") ? DeviceInfo::DeviceType::DESKTOP
+ : DeviceInfo::DeviceType::HEADLESS);
}
// |ApplicationDelegate| override.
« no previous file with comments | « services/debugger/debugger.cc ('k') | services/files/directory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698