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

Issue 1045173003: Fix blacklisting for desktop infobars. (Closed)

Created:
5 years, 8 months ago by melandory
Modified:
5 years, 8 months ago
CC:
chromium-reviews, gcasto+watchlist_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix blacklisting for desktop infobars. Also, please write in the CL description: * Blacklisting was broken for desktop infobars after CL https://codereview.chromium.org/967193002 * Source of problem was in reversed action in if/else clause. BUG=472006 R=mkwst@chromium.org Committed: https://crrev.com/14177dfa384a66bf361c73b34b34648e11bf4946 Cr-Commit-Position: refs/heads/master@{#323630}

Patch Set 1 #

Patch Set 2 : add tests #

Patch Set 3 : #

Total comments: 14

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -4 lines) Patch
M chrome/browser/password_manager/save_password_infobar_delegate.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/password_manager/save_password_infobar_delegate.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/browser/password_manager/save_password_infobar_delegate_unittest.cc View 1 2 3 4 1 chunk +125 lines, -0 lines 1 comment Download
M chrome/chrome_tests_unit.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/password_manager/core/browser/password_form_manager.h View 1 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/password_manager.h View 1 2 3 1 chunk +3 lines, -0 lines 1 comment Download

Messages

Total messages: 30 (11 generated)
melandory
5 years, 8 months ago (2015-03-31 07:26:09 UTC) #1
Mike West
Please add a test. :)
5 years, 8 months ago (2015-03-31 07:27:35 UTC) #2
Mike West
On 2015/03/31 at 07:27:35, Mike West wrote: > Please add a test. :) Ping?
5 years, 8 months ago (2015-04-02 05:58:14 UTC) #3
melandory
On 2015/04/02 05:58:14, Mike West wrote: > On 2015/03/31 at 07:27:35, Mike West wrote: > ...
5 years, 8 months ago (2015-04-02 07:54:43 UTC) #4
Mike West
On 2015/04/02 at 07:54:43, melandory wrote: > On 2015/04/02 05:58:14, Mike West wrote: > > ...
5 years, 8 months ago (2015-04-02 12:36:28 UTC) #5
vabr (Chromium)
Hi Tanja, LGTM with some comments. Also, please write in the CL description: * What ...
5 years, 8 months ago (2015-04-02 13:32:17 UTC) #7
melandory
https://codereview.chromium.org/1045173003/diff/40001/chrome/browser/password_manager/save_password_infobar_delegate.h File chrome/browser/password_manager/save_password_infobar_delegate.h (right): https://codereview.chromium.org/1045173003/diff/40001/chrome/browser/password_manager/save_password_infobar_delegate.h#newcode43 chrome/browser/password_manager/save_password_infobar_delegate.h:43: #if defined(UNIT_TEST) On 2015/04/02 13:32:16, vabr (Chromium) wrote: > ...
5 years, 8 months ago (2015-04-02 15:49:17 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1045173003/80001
5 years, 8 months ago (2015-04-02 15:53:18 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1045173003/80001
5 years, 8 months ago (2015-04-02 16:02:18 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1045173003/80001
5 years, 8 months ago (2015-04-02 16:17:43 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1045173003/80001
5 years, 8 months ago (2015-04-02 16:31:17 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1045173003/80001
5 years, 8 months ago (2015-04-02 16:47:14 UTC) #18
commit-bot: I haz the power
This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-02 16:53:56 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1045173003/100001
5 years, 8 months ago (2015-04-02 20:42:25 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/24042) linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 8 months ago (2015-04-02 21:06:17 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1045173003/100001
5 years, 8 months ago (2015-04-02 21:25:29 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:100001)
5 years, 8 months ago (2015-04-03 05:28:51 UTC) #28
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/14177dfa384a66bf361c73b34b34648e11bf4946 Cr-Commit-Position: refs/heads/master@{#323630}
5 years, 8 months ago (2015-04-03 20:32:33 UTC) #29
vabr (Chromium)
5 years, 8 months ago (2015-04-07 07:51:37 UTC) #30
Message was sent while issue was closed.
Hi Tanja,

I have 2 post-landing comments. Please consider them for a follow-up CL.

Thanks!
Vaclav

https://codereview.chromium.org/1045173003/diff/100001/chrome/browser/passwor...
File chrome/browser/password_manager/save_password_infobar_delegate_unittest.cc
(right):

https://codereview.chromium.org/1045173003/diff/100001/chrome/browser/passwor...
chrome/browser/password_manager/save_password_infobar_delegate_unittest.cc:103:
// SavePasswordInfoBarDelegate::Create takes ownership of
Why not just use scoped_ptr? Raw pointers are fragile, and require long comments
for documenting, which quickly get out of date. scoped_ptr works automatically,
and documents precisely and always correctly, who owns what.

Also, instead of duplicating this comment on lines 116-117, it should be at the
declaration of CreateDelegate (but I really suggest using scoped_ptr instead).

https://codereview.chromium.org/1045173003/diff/100001/components/password_ma...
File components/password_manager/core/browser/password_manager.h (right):

https://codereview.chromium.org/1045173003/diff/100001/components/password_ma...
components/password_manager/core/browser/password_manager.h:40: //
implementation in two classes crbug/473184.
nit: Please don't leave out http:// and .com, so that the link is clickable and
usable in CodeSearch on public networks.
http://crbug.com/473184

Powered by Google App Engine
This is Rietveld 408576698