New issue
Advanced search Search tips

Issue 705433 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2017
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Use |base::Erase(If)| where appropriate

Project Member Reported by jdoerrie@chromium.org, Mar 27 2017

Issue description

 http://crbug.com/697235  implemented base equivalents of std::erase/std::erase_if from Library Fundamentals TS v2. 

These methods replace the common erase-remove idiom with shorter and less error prone code and are thus preferable.

This bug is to track progress on replacing the old idiom wherever possible.


References:
-
 http://en.cppreference.com/w/cpp/experimental/lib_extensions_2#Uniform_container_erasure
- http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4273
 
Project Member

Comment 1 by bugdroid1@chromium.org, Mar 27 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c1e6a51270ce12fc32415422903d2735a8455b56

commit c1e6a51270ce12fc32415422903d2735a8455b56
Author: jdoerrie <jdoerrie@chromium.org>
Date: Mon Mar 27 11:04:37 2017

Use base::EraseIf in Password Form Manager

As a quick follow up to http://crrev.com/2774653006 this change replaces
the erase-remove idiom with base::EraseIf in password_form_manager.cc

BUG= 705433 
R=vabr@chromium.org

Review-Url: https://codereview.chromium.org/2776943003
Cr-Commit-Position: refs/heads/master@{#459749}

[modify] https://crrev.com/c1e6a51270ce12fc32415422903d2735a8455b56/components/password_manager/core/browser/password_form_manager.cc

Status: Fixed (was: Started)

Sign in to add a comment