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

Unified Diff: media/video/capture/mac/video_capture_device_factory_mac.mm

Issue 1182183003: Move EndsWith to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/filters/source_buffer_stream_unittest.cc ('k') | media/video/capture/video_capture_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/mac/video_capture_device_factory_mac.mm
diff --git a/media/video/capture/mac/video_capture_device_factory_mac.mm b/media/video/capture/mac/video_capture_device_factory_mac.mm
index f7428ebe39938006bbba58b54de93b34897cb606..76e14c6b24dadab914a01bb86d591c690b41b432 100644
--- a/media/video/capture/mac/video_capture_device_factory_mac.mm
+++ b/media/video/capture/mac/video_capture_device_factory_mac.mm
@@ -35,7 +35,7 @@ static bool IsDeviceBlacklisted(const VideoCaptureDevice::Name& name) {
bool is_device_blacklisted = false;
for(size_t i = 0;
!is_device_blacklisted && i < arraysize(kBlacklistedCameras); ++i) {
- is_device_blacklisted = EndsWith(name.id(),
+ is_device_blacklisted = base::EndsWith(name.id(),
kBlacklistedCameras[i].unique_id_signature, false);
}
DVLOG_IF(2, is_device_blacklisted) << "Blacklisted camera: " <<
@@ -182,7 +182,8 @@ void VideoCaptureDeviceFactoryMac::GetDeviceSupportedFormats(
// such information is provided for QTKit devices.
if (device.is_blacklisted()) {
for (size_t i = 0; i < arraysize(kBlacklistedCameras); ++i) {
- if (EndsWith(device.id(), kBlacklistedCameras[i].unique_id_signature,
+ if (base::EndsWith(device.id(),
+ kBlacklistedCameras[i].unique_id_signature,
false)) {
supported_formats->push_back(media::VideoCaptureFormat(
gfx::Size(kBlacklistedCameras[i].capture_width,
« no previous file with comments | « media/filters/source_buffer_stream_unittest.cc ('k') | media/video/capture/video_capture_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698