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

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: Created 4 years, 12 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 11ede87b37598342977977c6668546c9a5a678cb..f2c6f59d79d9cab3a93213f8f7a08d5c81428fa2 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
@@ -342,8 +342,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)) {

Powered by Google App Engine
This is Rietveld 408576698