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

Unified Diff: chrome/browser/ui/cocoa/passwords/account_avatar_fetcher_manager.mm

Issue 2606293002: Remove ScopedVector from chrome/browser/ui. (Closed)
Patch Set: nits Created 3 years, 11 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/cocoa/passwords/account_avatar_fetcher_manager.mm
diff --git a/chrome/browser/ui/cocoa/passwords/account_avatar_fetcher_manager.mm b/chrome/browser/ui/cocoa/passwords/account_avatar_fetcher_manager.mm
index c8332a61d140d55a6982b9f135707846a945f599..2667a128fb5fa460b74fc5e74a8a0451f353bf9e 100644
--- a/chrome/browser/ui/cocoa/passwords/account_avatar_fetcher_manager.mm
+++ b/chrome/browser/ui/cocoa/passwords/account_avatar_fetcher_manager.mm
@@ -79,9 +79,12 @@ void AccountAvatarFetcherBridge::UpdateAvatar(const gfx::ImageSkia& image) {
fromBridge:(AccountAvatarFetcherBridge*)bridge
forView:(CredentialItemButton*)view {
[view setImage:image];
- auto it = std::find(bridges_.begin(), bridges_.end(), bridge);
- if (it != bridges_.end())
- bridges_.erase(it);
+ for (auto it = bridges_.begin(); it != bridges_.end(); it++) {
+ if (it->get() == bridge) {
+ bridges_.erase(it);
+ return;
+ }
+ }
}
@end
« no previous file with comments | « chrome/browser/ui/cocoa/passwords/account_avatar_fetcher_manager.h ('k') | chrome/browser/ui/toolbar/toolbar_actions_bar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698