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

Unified Diff: chrome/browser/ui/permission_bubble/mock_permission_prompt_factory.cc

Issue 2947593005: Use ContainsValue() instead of std::find() in chrome/browser/ui/ (Closed)
Patch Set: Created 3 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
Index: chrome/browser/ui/permission_bubble/mock_permission_prompt_factory.cc
diff --git a/chrome/browser/ui/permission_bubble/mock_permission_prompt_factory.cc b/chrome/browser/ui/permission_bubble/mock_permission_prompt_factory.cc
index 284f3af1f867e73f887fabd3ac16cc2b3e2259a3..de7fc7ed6b9bf55445bc123b57eb969f5f4a9f03 100644
--- a/chrome/browser/ui/permission_bubble/mock_permission_prompt_factory.cc
+++ b/chrome/browser/ui/permission_bubble/mock_permission_prompt_factory.cc
@@ -67,8 +67,7 @@ int MockPermissionPromptFactory::TotalRequestCount() {
}
bool MockPermissionPromptFactory::RequestTypeSeen(PermissionRequestType type) {
- return std::find(request_types_seen_.begin(), request_types_seen_.end(),
- type) != request_types_seen_.end();
+ return base::ContainsValue(request_types_seen_, type);
}
void MockPermissionPromptFactory::WaitForPermissionBubble() {
« no previous file with comments | « chrome/browser/ui/input_method/input_method_engine.cc ('k') | chrome/browser/ui/views/tabs/tab_drag_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698