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

Unified Diff: chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 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
Index: chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc
diff --git a/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc b/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc
index b754f502327afbee09853a9473f318e12f1bb181..0eff178ef99bec7f0536e1f17807f97b3352a6b8 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc
+++ b/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc
@@ -411,8 +411,7 @@ void ArcAppListPrefs::OnAppIcon(const mojo::String& package,
mojo::Array<uint8_t> icon_png_data) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
DCHECK_NE(0u, icon_png_data.size());
- DCHECK(scale_factor >= arc::SCALE_FACTOR_SCALE_FACTOR_100P &&
- scale_factor < arc::SCALE_FACTOR_NUM_SCALE_FACTORS);
+ DCHECK(arc::ScaleFactor_IsValidValue(scale_factor));
std::string app_id = GetAppId(package, activity);
if (!IsRegistered(app_id)) {
« no previous file with comments | « chrome/browser/push_messaging/push_messaging_service_impl.cc ('k') | chrome/browser/ui/views/frame/browser_frame_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698