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

Unified Diff: media/video/capture/video_capture_device.cc

Issue 1233043003: Remove some legacy versions of StartsWith and EndsWith. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/video/capture/mac/video_capture_device_factory_mac.mm ('k') | mojo/runner/shell_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/video_capture_device.cc
diff --git a/media/video/capture/video_capture_device.cc b/media/video/capture/video_capture_device.cc
index e4744893a261f1dec110548fc34db4fa759ada79..cb03dba09bcd39ff60240234eb9d9291d9adff86 100644
--- a/media/video/capture/video_capture_device.cc
+++ b/media/video/capture/video_capture_device.cc
@@ -14,7 +14,7 @@ const std::string VideoCaptureDevice::Name::GetNameAndModel() const {
if (model_id.empty())
return device_name_;
const std::string suffix = " (" + model_id + ")";
- if (base::EndsWith(device_name_, suffix, true /* case sensitive */))
+ if (base::EndsWith(device_name_, suffix, base::CompareCase::SENSITIVE))
return device_name_;
return device_name_ + suffix;
}
« no previous file with comments | « media/video/capture/mac/video_capture_device_factory_mac.mm ('k') | mojo/runner/shell_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698