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

Unified Diff: chrome/browser/media/media_stream_devices_controller.cc

Issue 655413002: Convert ARRAYSIZE_UNSAFE -> arraysize in chrome/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: chrome/browser/media/media_stream_devices_controller.cc
diff --git a/chrome/browser/media/media_stream_devices_controller.cc b/chrome/browser/media/media_stream_devices_controller.cc
index d613661a9feea756509613fd947c82753a74ed18..47704daa53923f69639a0bd2fb16871a5b8de916 100644
--- a/chrome/browser/media/media_stream_devices_controller.cc
+++ b/chrome/browser/media/media_stream_devices_controller.cc
@@ -462,7 +462,7 @@ bool MediaStreamDevicesController::IsRequestAllowedByDefault() const {
CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA },
};
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(device_checks); ++i) {
+ for (size_t i = 0; i < arraysize(device_checks); ++i) {
if (!device_checks[i].has_capability)
continue;

Powered by Google App Engine
This is Rietveld 408576698